echo(1) DG/UX R4.11MU05 echo(1)
NAME
echo - echo arguments
SYNOPSIS
echo [ arg ] ...
echo [ -n ] [ arg ] ...
DESCRIPTION
Echo writes its arguments separated by blanks and terminated by a
new-line on the standard output. It also understands C-like escape
conventions; beware of conflicts with the shell's use of \.
Arguments are as follows:
\a Alert
\b Backspace
\c Print line without new-line
\f Form-feed
\n New-line
\r Carriage return
\t Tab
\\ Backslash
\n The 8-bit character whose ASCII code is the 1-, 2- or
3-digit octal number n, which must start with a zero.
\v Vertical tab
-n Do not add the newline to the output.
Echo is useful for producing diagnostics in command files and for
sending known data into a pipe.
International Features
Arguments containing characters from supplementary code sets can be
specified. Note that when octal notation is used, each byte of
multibyte characters should be preceded by a backslash (\).
EXAMPLES
$ echo Hello World
Prints the string "Hello World" on the standard output.
$ echo *
Prints the names of the files and subdirectories in the current
working directory. This output is similar to that of ls(1), but the
file and directory names are listed in one long line. It is usually
quicker than ls(1).
$ if test ! -r book
> then echo "file is not readable"
> fi
Tests if you do not have read permission for the file "book". Echo
prints "file is not readable" if the result of the "test ! -r book"
command is true.
SEE ALSO
sh(1), csh(1).
Licensed material--property of copyright holder(s)