blob: 860c026cc1f56e04f02fe6f1415b29bbdc9125ca [file] [log] [blame]
.TH PR 1
pr \- print file
.B pr
.I option ...
.I file ...
.I Pr
produces a printed listing of one or more
.I files
on its standard output.
The output is separated into pages headed by a date,
the name of the file or a specified header, and the page number.
With no file arguments,
.I pr
prints its standard input.
Options apply to all following files but may be reset
between files:
.BI - n
.IR n -column
.BI + n
Begin printing with page
.IR n .
.B -b
Balance columns on last page, in case of multi-column output.
.B -d
Double space.
.BI -e n
Set the tab stops for input text every
.I n
.B -h
Take the next argument as a page header
.RI ( file
by default).
.BI -i n
Replace sequences of blanks in the output
by tabs, using tab stops set every
.I n
.BI -f
Use form feeds to separate pages.
.BI -l n
Take the length of the page to be
.I n
lines instead of the default 66.
.B -m
Print all
.I files
each in one column.
.BI -n m
Number the lines of each
.IR file .
The numeric argument
.IR m ,
default 5,
sets the width of the line-number field.
.BI -o n
Offset the left margin
.I n
character positions.
.BI -p
Pad each file printed to an odd number of pages.
For two-sided printers,
this will ensure each file will start a new page.
.BI -s c
Separate columns by the single character
.I c
instead of aligning them with white space.
A missing
.I c
is taken to be a tab.
.B -t
Do not print the 5-line header or the
5-line trailer normally supplied for each page.
.BI -w n
For multi-column output,
take the width of the page to be
.I n
characters instead of the default 72.
.B \*9/src/cmd/pr.c
.IR cat (1),
.IR lp (1)