
662
|
Chapter 6: The Bash Shell and Korn Shell
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
\v Vertical-tab character.
\\ Backslash.
\0nnn
ASCII character represented by octal number nnn, where nnn
is zero, one, two, or three digits and is preceded by a 0.
\nnn
ASCII character represented by octal number nnn, where nnn
is one, two, or three digits.
\xHH
ASCII character represented by hexadecimal number HH,
where HH is one or two hexadecimal digits.
-E Do not interpret escape sequences, even on systems where the
default behavior of the built-in echo is to interpret them.
-n Do not print the terminating newline.
Examples
$ echo "testing printer" | lp
$ echo "Warning: ringing bell \a"
echo
echo [-n] [string]
Korn shell version. Write string to standard output; if -n is speci-
fied, the output is not terminated by a newline. If no string is
supplied, echo a newline.
The Korn shell’s echo, even though it is built into the shell,
emulates the system’s version of echo. Thus, if the version found
by a path search supports -n, the built-in version does, too. Simi-
larly, if the external version supports the escape sequences
described below, the built-in version does, too; otherwise it does
not.
*
(See also echo in Chapter 3.) echo understands special escape
characters, which must be quoted (or escaped with a \) to prevent
interpretation by the shell:
\a