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 | Bash Shell |
---|---|---|---|---|
echo "Hello $LOGNAME!" | echo "Hello $LOGNAME!" | print "Hello $LOGNAME!" | echo "Hello $LOGNAME!" | echo "Hello $LOGNAME"! |
echo "I don't care" | echo "I don't care" | print "I don't care" | echo "I don't care" | echo "I don't care" |
echo "The date is `date`" | echo "The date is `date`" | print "The date is $(date)" | echo "The date is `date`" | echo "The date is $(date)" |
echo "\\" \\ | echo "\\" | print "\\" | echo "\\" \ | echo "\\" \ |
3.145.50.222