PR(I) − PWB/UNIX 3/20/74
NAME
pr − print file
SYNOPSIS
pr [ −h header ] [ −n ] [ +n ] [ −wn ] [ −ln ] [ −t ] [ −sc ] [ −m ] name
DESCRIPTION
Pr produces a printed listing of one or more files. The output is separated into pages headed by a date, the name of the file or a specified header, and the page number. If there are no file arguments, pr prints its standard input, and is thus usable as a filter. Options apply to all following files but may be reset between files:
−nproduce n-column output
+nbegin printing with page n
−htreat the next argument as a header to be used instead of the file name
−wnfor purposes of multi-column output, take the width of the page to be n characters instead of the default 72
−lntake the length of the page to be n lines instead of the default 66
−tdo not print the 5-line header or the 5-line trailer normally supplied for each page
−scseparate columns by the single character c instead of by the appropriate amount of white space. A missing c is taken to be a tab.
−mprint all files simultaneously, each in one column
Interconsole messages via write(I) are forbidden during a pr.
FILES
/dev/tty? to suspend messages.
SEE ALSO
DIAGNOSTICS
none; files not found are ignored
BUGS