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

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 ;SPMlt;;SPMlt; '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.

Verbatim echo is useful when lengthy instructions are required for the user of a shell script to help him/her proceed.



Claude Cantin
Sun Sep 1 02:02:26 EDT 2002