pr(1)
NAME
pr − print and paginate file data
SYNTAX
pr [option...] [file...]
DESCRIPTION
The pr command 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.
OPTIONS
Options apply to all following files but may be reset between files:
−nProduces n-column output.
+nBegins printing with specified page number.
−bPrints blank headers.
−fUse formfeeds instead of new lines to separate pages. A formfeed is assumed to use up two blank lines at the top of a page. (Thus this option does not affect the effective page length.)
−hPrints output with specified header (next argument).
−ln
Take the length of the page to be n lines instead of the default 66. Since the minimum page length is 10 lines, n must be greater than 10.
−m
Prints all files simultaneously, each in one column.
−sc
Separates columns by the single character c instead of by the appropriate amount of white space. A missing c is taken to be a tab.
−tPrints data without 5-line header and trailer.
−wn
Uses specified number of characters as page width. Default is 72 characters.
Inter-terminal messages via write() are forbidden during a pr.
DIAGNOSTICS
There are no diagnostics when pr is printing on a terminal.
FILES
/dev/tty? to suspend messages.