| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
NAME="John Doe" |
| 5 |
RESPONDENT="the author of this fine script" |
| 6 |
|
| 7 |
cat <<'Endofmessage' |
| 8 |
|
| 9 |
Hello, there, $NAME. |
| 10 |
Greetings to you, $NAME, from $RESPONDENT. |
| 11 |
|
| 12 |
Endofmessage |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
cat <<"SpecialCharTest" |
| 25 |
|
| 26 |
Directory listing would follow |
| 27 |
if limit string were not quoted. |
| 28 |
`ls -l` |
| 29 |
|
| 30 |
Arithmetic expansion would take place |
| 31 |
if limit string were not quoted. |
| 32 |
$((5 + 3)) |
| 33 |
|
| 34 |
A a single backslash would echo |
| 35 |
if limit string were not quoted. |
| 36 |
\\ |
| 37 |
|
| 38 |
SpecialCharTest |
| 39 |
|
| 40 |
|
| 41 |
exit |