MPE/iX Shell and Utilities Reference Manual, Vol 2

pr(1) MPE/iX Shell and Utilities pr(1)
NAME
pr — display and format files
SYNOPSIS
pr [–adFmprtW][–e[char][gap]] [–H header-fmt][–h header]
[–i[char][gap]] [–l n][–n[char][n]] [–o n][–s[char]] [–w n]
[+n][n][file ...]
DESCRIPTION
pr displays the specified files on the standard output in a paginated form. If you do not spec-
ify any files or you specify a file name of , pr reads the standard input. By default, pr for-
mats the given files into single-column 66-line pages. Each page has a 5-line header. By
default, the current file’s pathname, its last modified date, and current page number appear on
the third line; the other lines are blank. A 5-line trailer consists of blank lines.
If you specify multiple columns, pr places its output in columns of equal width separated by
at least one space, truncating each line to fit in its column. Input lines may be ordered down
the columns or across the page on output; or different columns may each represent different
files.
Options
pr accepts the following options:
+n starts displaying with the nth page of each file. The default for n is 1.
n displays n columns of output. When you specify this option, pr behaves as though
you had also specified the –e and –i options. When you specify both this option and
–t, pr uses the minimum number of lines possible to display the output. You should
not specify this option with –m.
–a orders input lines across the page on output, instead of down. You should only use
this option with n.
–d produces double-spaced output.
–e[char][gap]
expands each occurrence of the input tab character to the next greater column posi-
tion specified by the formula n*gap+1 where n is a positive integer. pr expands all
input tab characters to an appropriate string of spaces. If you omit gap,orifitis
zero, pr assumes that gap is eight. If you specify the nondigit character char, pr
treats it as the input tab character; otherwise pr uses the standard tab character.
–F uses formfeeds to separate pages. pr normally separates pages by sending a series of
newline characters to fill the length of a page.
Commands and Utilities 1-433