Jump to navigation Jump to search
239 bytes removed ,  16:28, 19 October 2009
| The single quotes prevents displaying variable $SHELL value, disabled the meaning of [[wildcards]] /etc/*.conf, and finally command substitution ($date) itself. <br/><code>echo '$SHELL'<br/>echo '/etc/*.conf'<br />echo 'Today is $(date)'</code><br />&nbsp;
|`\|Back quote Backslahs|Use back quote ( `command-name` ) backslahs to change the special meaning of the characters or to '''execute command''' and replace a command with its output escape special characters within the same command-line. However, ''$(command-name)'' is encouraged syntax for substitution text such as it is recommended by [[POSIX]] standard and it improves script readabilityquotation marks.<br/>* '''Variable''' - Yes<br/>* '''Wildcards''' - Yes<br/>* '''Command substitution''' - yes|The [[date command]] You can use \ before dollar sign is executed and its output is substituted back used to told to [[echo command]]have no special meaning. Disable the meaning of the next character in $PATH ( not display value of $PATH variable):<br/><code>echo "Today Path is `date`\$PATH"<br />echo "Today Path is $(date)"<br/>echo "$(ls /etc/*.conf)"<br/>FILES=/etc/resolv.conf<br/>echo "$(cat $FILE)PATH"</code><br />&nbsp;

Navigation menu