Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

pr(1) OSS Shell and Utilities Reference Manual
-p Pauses before beginning each page if the output is directed to a tty. (pr sounds the bell
at the tty and waits for you to press <Return>.)
-r Does not display diagnostic messages if the system cannot open les.
-s[character]
Separates columns by the single character instead of by the appropriate number of
spaces (the default for character is an ASCII tab character).
-t Does not display the 5-line identifying header and the 5-line footer. Stops after the last
line of each le without spacing to the end of the page.
-x[character][number]
Same as -n.
-w width Sets the width of a line to width byte positions. If neither -w or -s are specied, the
default is 72. If only -s is specied, the default is 512. Single column output is not
truncated.
-column Produces the specied number of columns (the default value is 1). The -e and -i ags
are assumed for multicolumn output. A text column never exceeds the width of the
page (see -l).
+page Begins the display at the specied page number (the default value is 1).
DESCRIPTION
A heading that contains the page number, date, time, and the name of the le separates the output
into pages.
Unless specied, columns are of equal width and separated by at least one space. Lines that are
too long for the page width are shortened. If the standard output is a tty, pr does not display any
error messages until it has ended. By default, the input is separated into 66-line pages, including
the 5-line header and 5-line footer.
EXAMPLES
1. To print a le with headings and page numbers on the printer, enter:
pr prog.c | print
This inserts a page break in prog.c, starts each page with a heading, and sends the output
to the print command. The heading consists of the date the le was last modied, the
lename, and the page number.
2. To specify a title, enter:
pr -h "MAIN PROGRAM" prog.c print
This prints prog.c with the title MAIN PROGRAM in place of the lename. The
modication date and page number are still printed.
3. To print a le in multiple columns, enter:
pr -3 word.lst print
This prints the le word.lst in three vertical columns.
4. To print several les side-by-side on the paper, enter:
pr -m -h "Members, Visitors" member.lst visitor.lst | print
This prints the les member.lst and visitor.lst side-by-side with the title Members,
Visitors.
730 Hewlett-Packard Company 527188-003