MPE/iX Shell and Utilities Reference Manual, Vol 2
pr(1) MPE/iX Shell and Utilities pr(1)
–H header_fmt
lets you customize your header line by specifying a format with the string
header_fmt. pr recognizes the following special formatting commands:
%c date and time
%F current filename, or header string given by –h
%P page number
%L line number
%D date
%T time
%u current user name
The default header format is equivalent to the option:
-H "%c %F Page %P"
–h header
uses the header string instead of the file name on each succeeding page header.
–i[char][gap]
replaces white space with tabs on output. The nondigit character char, if given, is the
output tab character. The default is the tab character. pr sets tabs every gap posi-
tions; the default for gap is eight. If this tab character differs from the input tab char-
acter, and the actual data contains this tab character, the result is liable to be quite a
mess.
–l n sets the number of lines per page of output. The default is 66. The actual number of
lines displayed per page is this number less 5 for the header and 5 for the trailer.
When you also specify the –t option, pr uses all n lines. If n is less than 10 (the
number of lines needed for the header and the trailer), pr behaves as if you had
specified the –t option and displays neither the header nor the trailer.
–m displays each file in its own column down the page. This overrides the –a option,
forcing the –n option to be the number of files given. When you also specify the –n
option, it gives line numbers for the first column only.
–n[char][n]
numbers the lines of each file. Each number takes up n positions; the default for n is
5. The character char separates the number from the line; this defaults to the tab
character. For multi-column output, pr adds line numbers to each column. The –m
option gives the line number for the first column only.
1-434 Commands and Utilities