Commit | Line | Data |
---|---|---|
96a3a758 KT |
1 | .th PR I 1/15/73 |
2 | .sh NAME | |
3 | pr \*- print file | |
4 | .sh SYNOPSIS | |
5 | .bd pr | |
6 | [ | |
7 | .bd \*-h | |
8 | name ] [ \fB\*-\fIn\fR ] [ \fB+\fIn\fR ] [ file ... ] | |
9 | .sh DESCRIPTION | |
10 | .it Pr | |
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, | |
15 | .it pr | |
16 | prints the standard | |
17 | input file, and is thus usable as a filter. | |
18 | .s3 | |
19 | Options apply to all following files but may be reset | |
20 | between files: | |
21 | .s3 | |
22 | .lp +5 5 | |
23 | \fB\*-\fIn\fR produce \fIn\fR-column output | |
24 | .s3 | |
25 | .lp +5 5 | |
26 | \fB+\fIn\fR begin printing with page \fIn\fR. | |
27 | .s3 | |
28 | .lp +5 5 | |
29 | \fB\*-h\fR treat the next argument as a header | |
30 | .s3 | |
31 | .i0 | |
32 | If there is a header in force, it is printed in place of | |
33 | the file name. | |
34 | Interconsole messages via write(I) are | |
35 | forbidden during a | |
36 | .it pr. | |
37 | .sh FILES | |
38 | /dev/tty? | |
39 | to suspend messages. | |
40 | .sh "SEE ALSO" | |
41 | cat(I), cp(I) | |
42 | .sh DIAGNOSTICS | |
43 | none (files not found are ignored) | |
44 | .sh BUGS | |
45 | It would be nice to be able to set the number of | |
46 | lines per page. |