The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What command do you use to clear the print que? nov_user UNIX for Dummies Questions & Answers 1 10-01-2007 10:09 AM
Migrate HPUX print qeues to red hat linux dillzz Linux 0 05-18-2007 08:42 PM
Problem with print command rkumar28 Shell Programming and Scripting 2 05-19-2006 12:04 PM
perl print command vasikaran UNIX for Dummies Questions & Answers 2 08-07-2005 01:47 AM
how to print screen in linux vancouver_joe UNIX for Dummies Questions & Answers 2 01-15-2002 11:51 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-17-2003
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
Stumble this Post!
Print command in linux

What is the equivalent of print for linux scripts? I've scripted in unix, but went to try and do a script in linux, red hat 6.2, and it said print command not found.

i.e.:

print 'Enter answer'
read answer
.
.
.
etc.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-17-2003
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
Stumble this Post!
echo works, i told it the sh shell, switched to ksh and it works fine.
Reply With Quote
  #3 (permalink)  
Old 04-17-2003
oombera's Avatar
Have a day :|
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
Stumble this Post!
Just use echo instead of print:

echo "Enter answer"; read answer; echo $answer

-----
i see you figured it out as i was posting
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0