Write a script that outputs your name. So if your name is "Joe Smith". The script should echo "Joe Smith" to the screen.
the answer is $cat tut2q1.sh
!/bin/bash
This is a script to print Joe Smiths name.
echo 'Joe Smith' $
but after i write $cat blah blah, the next command line gives me > symbol. after finish typing until the end of $, i can't get out of the sh? how do you type those command step by step?
Question
SlayerS_BoxeR
Write a script that outputs your name. So if your name is "Joe Smith". The script should echo "Joe Smith" to the screen.
the answer is $cat tut2q1.sh
!/bin/bash
This is a script to print Joe Smiths name.
echo 'Joe Smith' $
but after i write $cat blah blah, the next command line gives me > symbol. after finish typing until the end of $, i can't get out of the sh? how do you type those command step by step?
thanks
Link to comment
Share on other sites
3 answers to this question
Recommended Posts