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-16-2002 12:51 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-17-2003
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
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  
Old 04-17-2003
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
echo works, i told it the sh shell, switched to ksh and it works fine.
Reply With Quote
  #3  
Old 04-17-2003
oombera's Avatar
Registered User
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
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 Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 01:20 PM.


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

Content Relevant URLs by vBSEO 3.2.0