O'Reilly logo

Korn Shell: Unix and Linux Programming Manual, Third Edition, The by Anatole Olczak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

THE print COMMAND

print [options] argumentsdisplay arguments according to options

print Options

treat everything following as an argument, even if it begins with
–n do not add a ending newline to output
–p redirect the given arguments to a co-process
–r ignore \ escape conventions
–R ignore \ escape conventions; do not interpret arguments as options (except –n)
–s redirect given arguments to history file
–un redirect arguments to file descriptor n. If file descriptor is greater than 2, it must first be opened with exec. If n is not specified, default file descriptor is 1 (standard output).

print Escape Characters

\a Bell character
\b Backspace
\c Line without ending newline
\f Formfeed
\n Newline
\r Return
\t Tab
\v Vertical tab ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required