|LXF#126 Shell scripting explanation
|Page 1 of 1|
|Author:||jasminemark [ 01 Apr 2011 2:44 pm ]|
|Post subject:||LXF#126 Shell scripting explanation|
Trying to follow the script Bob Moss has on pg 48-51. Just a beginner so please have patience. When I get to point
and then type
sh script_tutorial.sh ''Hello,World\!''
I must assume that the quotes here are two single quotes at the beginning of the Hello,World string and at the end of the line. If I try double quotes here I get
and on the next step, sending the value of the argument ($1) to the file sample.txt results in a blank file.
It does work with two single quotes, though. Is this correct? Why is it necessary to escape the ! question mark
|Page 1 of 1||All times are UTC + 8 hours|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group