1PR(1) General Commands Manual PR(1)
2
3
4
6 pr - print file
7
9 pr [ option ] ... [ file ] ...
10
12 Pr produces a printed listing of one or more files. The output is sep‐
13 arated into pages headed by a date, the name of the file or a specified
14 header, and the page number. If there are no file arguments, pr prints
15 its standard input.
16
17 Options apply to all following files but may be reset between files:
18
19 -n Produce n-column output.
20
21 +n Begin printing with page n.
22
23 -h Take the next argument as a page header.
24
25 -wn For purposes of multi-column output, take the width of the page
26 to be n characters instead of the default 72.
27
28 -f Use formfeeds instead of newlines to separate pages. A formfeed
29 is assumed to use up two blank lines at the top of a page.
30 (Thus this option does not affect the effective page length.)
31
32 -ln Take the length of the page to be n lines instead of the default
33 66.
34
35 -t Do not print the 5-line header or the 5-line trailer normally
36 supplied for each page.
37
38 -sc Separate columns by the single character c instead of by the
39 appropriate amount of white space. A missing c is taken to be a
40 tab.
41
42 -m Print all files simultaneously, each in one column,
43
44 Inter-terminal messages via write(1) are forbidden during a pr.
45
47 /dev/tty? to suspend messages.
48
50 cat(1)
51
53 There are no diagnostics when pr is printing on a terminal.
54
55
56
574th Berkeley Distribution April 29, 1985 PR(1)