.\" Copyright (c) 1991 Keith Muller.
.\" The Regents of the University of California. All rights reserved.
.\" This code is derived from software contributed to Berkeley by
.\" Keith Muller of the University of California, San Diego.
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" @(#)pr.1 8.3 (Berkeley) 4/18/94
utility is a printing and pagination filter for text files.
When multiple input files are specified, each is read, formatted,
and written to standard output.
By default, the input is separated into 66-line pages, each with
\(bu A 5-line header with the page number, date, time, and
the pathname of the file.
\(bu A 5-line trailer consisting of blank lines.
If standard output is associated with a terminal,
diagnostic messages are suppressed until the
utility has completed processing.
When multiple column output is specified,
text columns are of equal width.
By default text columns are separated by at least one
Input lines that do not fit into a text column are truncated.
Lines are not truncated under single column output.
In the following option descriptions, column, lines, offset, page, and
width are positive decimal integers and gap is a nonnegative decimal integer.
Begin output at page number
wide (default is 1) that is written vertically
down each column in the order in which the text
is received from the input file.
This option should not be used with
the minimum number of lines is used to display the output.
option so that the columns are filled across the page in a round-robin order
(e.g., when column is 2, the first input line heads column
1, the second heads column 2, the third is the second line
This option requires the use of the
Produce output that is double spaced. An extra
character is output following every <newline> found in the input.
.It Fl e Ar \&[char\&]\&[gap\&]
Expand each input <tab> to the next greater column
position specified by the formula
is zero or is omitted the default is 8.
characters in the input are expanded into the appropriate
If any nondigit character,
is specified, it is used as the input tab character.
instead of the default behavior that uses a
.It Fl i Ar \&[char\&]\&[gap\&]
In output, replace multiple <space>s with <tab>s whenever two or more
adjacent <space>s reach column positions
is zero or omitted, default
settings at every eighth column position
If any nondigit character,
is specified, it is used as the output
Override the 66 line default and reset the page length to
is not greater than the sum of both the header and trailer
utility suppresses output of both the header and trailer, as if the
Merge the contents of multiple files.
One line from each file specified by a file operand is
written side by side into text columns of equal fixed widths, in
terms of the number of column positions.
The number of text columns depends on the number of
file operands successfully opened.
The maximum number of files merged depends on page width and the
per process open file limit.
.It Fl n Ar \&[char\&]\&[width\&]
The number occupies the first
column positions of each text column or each line of
(any nondigit character) is given, it is appended to the line number to
separate it from whatever follows. The default for
Each line of output is preceded by
option is not specified, the default is zero.
The space taken is in addition to the output line width.
Write no diagnostic reports on failure to open a file.
Separate text columns by the single character
instead of by the appropriate number of
Print neither the five-line identifying
header nor the five-line trailer usually supplied for each page.
Quit printing after the last line of each file without spacing to the
Set the width of the line to
column positions for multiple text-column output only.
option is not specified and the
option is not specified, the default width is 72.
option is not specified and the
option is specified, the default width is 512.
A pathname of a file to be printed.
operands are specified, or if a
the standard input is used.
The standard input is used only if no
operands are specified, or if a
option does not allow the option letter to be separated from its
argument, and the options
require that both arguments, if present, not be separated from the option
receives an interrupt while printing to a terminal, it
flushes all accumulated error messages to the screen before
utility exits 0 on success, and 1 if an error occurs.
Error messages are written to standard error during the printing
process (if output is redirected) or after all successful
file printing is complete (when printing to a terminal).