|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
echo works, i told it the sh shell, switched to ksh and it works fine.
|
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
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 | ||
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|