PR(1) — Unix Programmer’s Manual
NAME
pr − print file
SYNOPSIS
pr [ options ] [ files ]
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.
Inter-terminal messages via write(1) are forbidden while pr is running.
OPTIONS
Options apply to all files specified; however, you can reset options between files.
−n Produces n-column output.
+n Begins printing with page n.
−f Uses formfeeds instead of newlines to separate pages. Pr assumes a formfeed to use up two blank lines at the top of a page. (Consequently, this option does not affect the effective page length.)
−h header
Takes header as a page header.
−ln Takes the length of the page to be n lines instead of the default 66.
−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. Pr interprets a missing c to be a tab.
−t Tells pr not to print the 5-line header or the 5-line trailer normally supplied for each page.
−wn For purposes of multi-column output, takes the width of the page to be n characters instead of the default 72.
FILES
/dev/tty?to suspend messages
SEE ALSO
DIAGNOSTICS
There are no diagnostics when pr is printing on a terminal.
4th Berkeley Distribution — April 29, 1985