2011年9月7日 星期三

Linux script: Quoting

http://bash.cyberciti.biz/guide/Quoting

The double quote " : variable and command will be run

The single quote ' : variable and command will not be run

Ex:
echo "$PATH" --> The $PATH will be expand
echo '$PATH' --> The $PATH will not be expand

echo "$(date)" --> show date
echo '$(date)' --> only show $(date)

沒有留言:

張貼留言