User guide

echo
echo display text output
Sends a line of text that you enter on the command line to the current output
device. The default output device is your console screen. The echo command
separates arguments (words) in the line with blanks and adds a new line
character to the end of the line.
Whenever you specify pipes or I/O redirection, enclose the text within single
quotes.
Syntax
echo [-n]
args
...
Arguments
args
...
Specifies the character strings to be displayed.
Options
-n
Suppresses new lines from the command output.
Examples
1.
>>> echo this is a test.
this is a test.
>>>
Echo sends the character string to your console screen.
2.
>>> echo -n this is a test.
this is a test.>>>
Echo sends the character string to your console screen, but with no new line
separating the string from the next console prompt (>>>).
3.
>>> echo ’this is a test’ > foo
>>> cat foo
this is a test
>>>
The string is piped to the file
foo
. Typing the contents of the file
foo
then
shows the string.
13–30 Console Commands