print(1) User Commands print(1)NAMEprint - shell built-in function to output characters to the screen or
window
SYNOPSIS
ksh
print [-Rnprsu [n]] [arg]...
DESCRIPTION
ksh
The shell output mechanism. With no options or if the - option is spec‐
ified, the arguments that follow are printed on standard output as
described by echo(1). If the - option is specified, anything that fol‐
lows it is processed as an argument, even if it begins with a -.
OPTIONS
The following options are supported:
-n Suppress a NEWLINE from being added to the output.
-p Cause the arguments to be written onto the pipe of the
process spawned with |& instead of standard output.
-r Raw mode. Ignore the escape conventions of echo. The -R
-R option prints all subsequent arguments and options other
than -n.
-s Cause the arguments to be written onto the history file
instead of standard output.
-u [ n ] Specify a one digit file descriptor unit number n on which
the output is placed. The default is 1.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 Output file is not open for writing.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Availability │SUNWcsu │
└─────────────────────────────┴─────────────────────────────┘
SEE ALSOecho(1), ksh(1), attributes(5)SunOS 5.10 1 Mar 2011 print(1)