Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
print(1) OSS Shell and Utilities Reference Manual
NAME
print - The shell output mechanism
SYNOPSIS
print [-Rnprsu[n]] [argument ...]
FLAGS
-R Ignores escape conventions, which are the same as those followed by the echo com-
mand. Prints all subsequent arguments and options, other than -n.
-n Does not add newlines to the output.
-p Causes the arguments to be written onto the pipe of the process spawned with |&
instead of onto the standard output.
-r Ignores escape conventions, which are the same as those followed by the echo com-
mand.
-u Specifies a 1-digit file descriptor unit number n on which the output will be placed.
The default is 1.
- Causes the arguments to be written to the history file instead of to standard output.
DESCRIPTION
The print command prints the string of numbers and letters specified as argument to the standard
output (default) or to a pipe (if the -p flag is used).
If no flags are specified or if a - or a -- is used, the argument is printed to standard output as des-
cibed for the echo command.
EXAMPLES
The following command prints the sentence "This is a test." to the screen:
print This is a test.
This is a test.
NOTES
The print command is a shell built-in command. It differs from the regular commands in that it
does not open a new shell process when it executes.
A general discussion of shell built-in commands and a list of the OSS shell built-in commands
are in the reference page for sh(1).
RELATED INFORMATION
Commands: echo(1), sh(1).
7−32 Hewlett-Packard Company 527188-003