Commit | Line | Data |
---|---|---|
10d1b371 BJ |
1 | .TH PR 1 |
2 | .SH NAME | |
3 | pr \- print file | |
4 | .SH SYNOPSIS | |
5 | .B pr | |
6 | [ option ] ... | |
7 | [ file ] ... | |
8 | .SH DESCRIPTION | |
9 | .I Pr | |
10 | produces a printed listing of one or more | |
11 | .I files. | |
12 | The output is separated into pages headed by a date, | |
13 | the name of the file or a specified header, and the page number. | |
14 | If there are no file arguments, | |
15 | .I pr | |
16 | prints its standard input. | |
17 | .PP | |
18 | Options apply to all following files but may be reset | |
19 | between files: | |
20 | .TP | |
21 | .BI \- n | |
22 | Produce | |
23 | .IR n -column | |
24 | output. | |
25 | .TP | |
26 | .BI + n | |
27 | Begin printing with page | |
28 | .I n. | |
29 | .TP | |
30 | .B \-h | |
31 | Take the next argument as a page header. | |
32 | .TP | |
33 | .BI \-w n | |
34 | For purposes of multi-column output, | |
35 | take the width of the page to be | |
36 | .I n | |
37 | characters instead of the default 72. | |
38 | .TP | |
39 | .BI \-l n | |
40 | Take the length of the page to be | |
41 | .I n | |
42 | lines instead of the default 66. | |
43 | .TP | |
44 | .B \-t | |
45 | Do not print the 5-line header or the | |
46 | 5-line trailer normally supplied for each page. | |
47 | .TP | |
48 | .BI \-s c | |
49 | Separate columns by the single character | |
50 | .I c | |
51 | instead of by the appropriate amount of white space. | |
52 | A missing | |
53 | .I c | |
54 | is taken to be a tab. | |
55 | .TP | |
56 | .B \-m | |
57 | Print all | |
58 | .I files | |
59 | simultaneously, | |
60 | each in one column, | |
61 | .PP | |
62 | Inter-terminal messages via | |
63 | .IR write (1) | |
64 | are | |
65 | forbidden during a | |
66 | .IR pr . | |
67 | .SH FILES | |
68 | /dev/tty? | |
69 | to suspend messages. | |
70 | .SH "SEE ALSO" | |
71 | cat(1) | |
72 | .SH DIAGNOSTICS | |
73 | There are no diagnostics when | |
74 | .I pr | |
75 | is printing on a terminal. |