Research V4 development
[unix-history] / man / man1 / pr.1
CommitLineData
96a3a758
KT
1.th PR I 1/15/73
2.sh NAME
3pr \*- print file
4.sh SYNOPSIS
5.bd pr
6[
7.bd \*-h
8name ] [ \fB\*-\fIn\fR ] [ \fB+\fIn\fR ] [ file ... ]
9.sh DESCRIPTION
10.it Pr
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,
15.it pr
16prints the standard
17input file, and is thus usable as a filter.
18.s3
19Options apply to all following files but may be reset
20between 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
32If there is a header in force, it is printed in place of
33the file name.
34Interconsole messages via write(I) are
35forbidden during a
36.it pr.
37.sh FILES
38/dev/tty?
39to suspend messages.
40.sh "SEE ALSO"
41cat(I), cp(I)
42.sh DIAGNOSTICS
43none (files not found are ignored)
44.sh BUGS
45It would be nice to be able to set the number of
46lines per page.