Verbatim echo



next up previous contents
Next: Parameters and the Up: Programming the Shells Previous: `...`: Use Output

Verbatim echo

Contents of variables and strings can easily be displayed with the echo command. cat may be used to display multi-line strings without using multiple echo commands.

cat << 'string'
This is part of the script being output in a verbatim fashion. All
lines preceding `string' would be displayed as seen in the script
itself.

string

The message to be displayed must be terminated with string on a line by itself, with no leading blanks.



Super-User
Fri Feb 17 15:55:40 EST 1995