Research V3 development
[unix-history] / man / man1 / pr.1
CommitLineData
ad4f09a5
KT
1.pa 1
2.he 'PR (I)'1/15/73'PR (I)'
3.ti 0
4NAME pr -- print file
5.sp
6.ti 0
7SYNOPSIS pr\b\b__ [-cm\b\b\b___] [-h\b\b__ name] [-\b_n] [+\b_n] [file\e91\e8 ...]
8.sp
9.ti 0
10DESCRIPTION pr\b\b__
11produces a printed listing of one or more files.
12The output is separated into pages headed by a date,
13the name of the file or a header (if any), and the page number.
14If there are no file arguments, pr\b\b__ prints the standard
15input file, and is thus usable as a filter.
16
17Options apply to all following files but may be reset
18between files:
19
20 -c\b\b__ print current date
21 -m\b\b__ print date file last modified (default)
22.sp
23 -\b_n produce n-column output
24.sp
25 +\b_n begin printing with page n
26.sp
27 -h\b\b__ treats the next argument as a header
28.sp
29If there is a header in force, it is printed in place of
30the file name.
31.sp
32Interconsole messages via write\b\b\b\b\b_____(I) are
33forbidden during a pr\b\b__.
34.sp
35.sp
36.ti 0
37FILES /dev/tty?
38to suspend messages.
39.sp
40.ti 0
41SEE ALSO cat(I), cp(I)
42.sp
43.ti 0
44DIAGNOSTICS none (files not found are ignored)
45.sp
46.ti 0
47BUGS In multi-column
48output, non-printing characters other than new-line
49cause misalignment.