Commit | Line | Data |
---|---|---|
ad4f09a5 KT |
1 | .pa 1 |
2 | .he 'PR (I)'1/15/73'PR (I)' | |
3 | .ti 0 | |
4 | NAME pr -- print file | |
5 | .sp | |
6 | .ti 0 | |
7 | SYNOPSIS pr\b\b__ [-cm\b\b\b___] [-h\b\b__ name] [-\b_n] [+\b_n] [file\e91\e8 ...] | |
8 | .sp | |
9 | .ti 0 | |
10 | DESCRIPTION pr\b\b__ | |
11 | produces a printed listing of one or more files. | |
12 | The output is separated into pages headed by a date, | |
13 | the name of the file or a header (if any), and the page number. | |
14 | If there are no file arguments, pr\b\b__ prints the standard | |
15 | input file, and is thus usable as a filter. | |
16 | ||
17 | Options apply to all following files but may be reset | |
18 | between 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 | |
29 | If there is a header in force, it is printed in place of | |
30 | the file name. | |
31 | .sp | |
32 | Interconsole messages via write\b\b\b\b\b_____(I) are | |
33 | forbidden during a pr\b\b__. | |
34 | .sp | |
35 | .sp | |
36 | .ti 0 | |
37 | FILES /dev/tty? | |
38 | to suspend messages. | |
39 | .sp | |
40 | .ti 0 | |
41 | SEE ALSO cat(I), cp(I) | |
42 | .sp | |
43 | .ti 0 | |
44 | DIAGNOSTICS none (files not found are ignored) | |
45 | .sp | |
46 | .ti 0 | |
47 | BUGS In multi-column | |
48 | output, non-printing characters other than new-line | |
49 | cause misalignment. |