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.
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.
echo works, i told it the sh shell, switched to ksh and it works fine.
Just use echo instead of print:
echo "Enter answer"; read answer; echo $answer
-----
i see you figured it out as i was posting