Double Quotes (see Table C.2):
Must be matched.
Protects all metacharacters from interpretation except:
Itself
Exclamation (!) point (bash, csh)
$ used for variable substitutiond.
Backquotes (` ` ) for command substitution
C Shell | Bourne Shell | Korn Shell | TC Shell | Bash Shell |
---|---|---|---|---|
echo '$><%^&*' | echo '$*&!><?' | echo '$*&!><?' | echo '$><%^&*' | echo '$*&!><?' |
echo 'I need $5.00\!' | echo 'I need $5.00!' | echo 'I need $5.00!' | echo 'I need $5.00!' | echo 'I need $5.00!' |
echo 'She cried, "Help"' | echo 'She cried, "Help"' | echo 'She cried, "Help"' | echo 'She cried, "Help"' | echo 'She cried, "Help"' |
echo '\\\\' \\\\ | echo '\\\\' \\ | print '\\\\' \\ | echo '\\\\' \\ | echo '\\\\' |
C Shell | Bourne Shell | Korn Shell | TC Shell ... |
---|
Get Linux Shells by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.