Print command in linux | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


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

Print command in linux

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-17-2003
kymberm kymberm is offline
Registered User
 
Join Date: Mar 2002
Last Activity: 27 April 2005, 11:36 AM EDT
Location: Texas
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
    #2  
Old 04-17-2003
kymberm kymberm is offline
Registered User
 
Join Date: Mar 2002
Last Activity: 27 April 2005, 11:36 AM EDT
Location: Texas
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
echo works, i told it the sh shell, switched to ksh and it works fine.
Sponsored Links
    #3  
Old 04-17-2003
oombera's Avatar
oombera oombera is offline Forum Advisor  
Registered User
 
Join Date: Aug 2002
Last Activity: 3 October 2004, 6:07 PM EDT
Location: Cleveland, OH
Posts: 804
Thanks: 0
Thanked 5 Times in 4 Posts
Just use echo instead of print:

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

-----
i see you figured it out as i was posting
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Print server Migration from AIX to Linux brby07 Red Hat 1 05-01-2010 11:11 AM
how to print date/cal in /etc/motd on linux server dodasajan Red Hat 1 01-18-2010 01:55 PM
How to get/print the lines from a specified file ? (LINUX) rajavu UNIX for Dummies Questions & Answers 4 12-23-2008 03:47 PM
Migrate HPUX print qeues to red hat linux dillzz UNIX for Advanced & Expert Users 1 07-10-2007 02:02 PM
how to print screen in linux vancouver_joe UNIX for Dummies Questions & Answers 2 01-16-2002 02:51 AM



All times are GMT -4. The time now is 12:24 AM.