Research V3 development
[unix-history] / man / man1 / pr.1
.pa 1
.he 'PR (I)'1/15/73'PR (I)'
.ti 0
NAME pr -- print file
.sp
.ti 0
SYNOPSIS pr\b\b__ [-cm\b\b\b___] [-h\b\b__ name] [-\b_n] [+\b_n] [file\e91\e8 ...]
.sp
.ti 0
DESCRIPTION pr\b\b__
produces a printed listing of one or more files.
The output is separated into pages headed by a date,
the name of the file or a header (if any), and the page number.
If there are no file arguments, pr\b\b__ prints the standard
input file, and is thus usable as a filter.
Options apply to all following files but may be reset
between files:
-c\b\b__ print current date
-m\b\b__ print date file last modified (default)
.sp
-\b_n produce n-column output
.sp
+\b_n begin printing with page n
.sp
-h\b\b__ treats the next argument as a header
.sp
If there is a header in force, it is printed in place of
the file name.
.sp
Interconsole messages via write\b\b\b\b\b_____(I) are
forbidden during a pr\b\b__.
.sp
.sp
.ti 0
FILES /dev/tty?
to suspend messages.
.sp
.ti 0
SEE ALSO cat(I), cp(I)
.sp
.ti 0
DIAGNOSTICS none (files not found are ignored)
.sp
.ti 0
BUGS In multi-column
output, non-printing characters other than new-line
cause misalignment.