HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

p
pr(1) pr(1)
-f Same as -F. Provided for backwards compatibility.
-r Print no diagnostic reports on failure to open files.
-t Print neither the five-line identifying header nor the five-line trailer normally supplied for
each page. Quit printing after the last line of each le without spacing to the end of the
page.
-sc Separate columns by the single character c instead of by the appropriate number of spaces
(default for c is a tab).
EXTERNAL INFLUENCES
Environment Variables
UNIX95, if defined, specifies that the
pr command uses XPG4 behavior.
LC_CTYPE determines the interpretation of text and the arguments associated with the
-e, -i, -n, and
-s options as single-byte and/or multi-byte characters.
LC_TIME determines the format and contents of date and time strings.
LC_MESSAGES determines the language in which messages are displayed.
If LC_CTYPE, LC_TIME,orLC_MESSAGES is not specified in the environment or is set to the empty
string, the value of LANG is used as a default for each unspecified or empty variable. If
LANG is not
specified or is set to the empty string, a default of
C (see lang(5)) is used instead of
LANG.
If any internationalization variable contains an invalid setting,
pr behaves as if all internationalization
variables are set to
C. See environ(5).
International Code Set Support
Single-byte and multi-byte character code sets are supported.
RETURN VALUE
The pr returns the following values upon completion:
0 Successful completion.
>0 One or more of the input files do not exist or cannot be opened.
EXAMPLES
Print file1 and file2 as a double spaced, three column listing headed by ‘‘file list’’:
pr -3dh "file list" file1 file2
Write file1 on file2, expanding tabs to columns 10, 19, 28, 37, . . . :
pr -e9 -t <file1 >file2
Print file1 in default format with nonblank lines numbered down the left side:
nl file1 | pr
FILES
/dev/tty
SEE ALSO
cat(1), lp(1), nl(1), ul(1).
STANDARDS CONFORMANCE
pr: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
Section 1778 Hewlett-Packard Company 2 HP-UX 11i Version 1: September 2005