ECHO - echo command line.

Syntax:

echo arg1 arg2 arg3 ...

Description:

ECHO simply displays its arguments on the standard output. If no arguments are given, ECHO outputs a blank line. ECHO is useful for checking shell commands and for typing messages to the user of an EXEC command file.

If an argument begins with a single quote or double quote, it is considered to be a quoted string, possibly containing blanks. The quoted string ends at the first new-line or matching quote followed by a blank. Quotes surrounding a quoted string are always stripped off. For example,

echo hello    there

displays

hello there

but

echo "hello    there"

displays

hello    there

In the first example there are two arguments, and the output shows the arguments with one space between them. In the second example there is one string argument, and the output shows the complete argument (with the extra spaces between words).

If you do not want a quote to be taken as a delimiter (and stripped off), use two of them. For example,

echo ""hello""

displays

"hello"

Copyright © 1996, Thinkage Ltd.