1 .\" Copyright (c) 1991 Keith Muller.
3 .\" The Regents of the University of California. All rights reserved.
5 .\" This code is derived from software contributed to Berkeley by
6 .\" Keith Muller of the University of California, San Diego.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. All advertising materials mentioning features or use of this software
17 .\" must display the following acknowledgement:
18 .\" This product includes software developed by the University of
19 .\" California, Berkeley and its contributors.
20 .\" 4. Neither the name of the University nor the names of its contributors
21 .\" may be used to endorse or promote products derived from this software
22 .\" without specific prior written permission.
24 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 .\" @(#)pr.1 8.3 (Berkeley) 4/18/94
37 .\" $FreeBSD: src/usr.bin/pr/pr.1,v 1.9.2.9 2002/07/15 07:29:05 keramida Exp $
38 .\" $DragonFly: src/usr.bin/pr/pr.1,v 1.4 2006/03/01 08:01:09 swildner Exp $
40 .Dd September 20, 2001
102 utility is a printing and pagination filter for text files.
103 When multiple input files are specified, each is read, formatted,
104 and written to standard output.
105 By default, the input is separated into 66-line pages, each with
108 A 5-line header with the page number, date, time, and
109 the pathname of the file.
111 A 5-line trailer consisting of blank lines.
114 If standard output is associated with a terminal,
115 diagnostic messages are suppressed until the
117 utility has completed processing.
119 When multiple column output is specified,
120 text columns are of equal width.
121 By default text columns are separated by at least one
123 Input lines that do not fit into a text column are truncated.
124 Lines are not truncated under single column output.
126 In the following option descriptions, column, lines, offset, page, and
127 width are positive decimal integers and gap is a nonnegative decimal integer.
130 Begin output at page number
132 of the formatted input.
134 Produce output that is
136 wide (default is 1) that is written vertically
137 down each column in the order in which the text
138 is received from the input file.
144 This option should not be used with
148 the minimum number of lines is used to display the output.
149 (To columnify and reshape text files more generally and without additional
154 Modify the effect of the
156 option so that the columns are filled across the page in a round-robin order
157 (e.g., when column is 2, the first input line heads column
158 1, the second heads column 2, the third is the second line
160 This option requires the use of the
164 Produce output that is double spaced.
167 character is output following every
176 to the next greater column
177 position specified by the formula
184 is zero or is omitted the default is 8.
187 characters in the input are expanded into the appropriate
190 If any nondigit character,
192 is specified, it is used as the input tab character.
196 character for new pages,
197 instead of the default behavior that uses a
204 but pause before beginning the first page if standard output is a terminal.
215 In output, replace multiple
222 reach column positions
228 is zero or omitted, default
230 settings at every eighth column position
232 If any nondigit character,
234 is specified, it is used as the output
240 specified as argument instead of one found in environment.
241 Use "C" to reset locale to default.
243 Override the 66 line default and reset the page length to
247 is not greater than the sum of both the header and trailer
248 depths (in lines), the
250 utility suppresses output of both the header and trailer, as if the
252 option were in effect.
254 Merge the contents of multiple files.
255 One line from each file specified by a file operand is
256 written side by side into text columns of equal fixed widths, in
257 terms of the number of column positions.
258 The number of text columns depends on the number of
259 file operands successfully opened.
260 The maximum number of files merged depends on page width and the
261 per process open file limit.
273 digit line numbering.
276 if not specified, is 5.
277 The number occupies the first
279 column positions of each text column or each line of
284 (any nondigit character) is given, it is appended to the line number to
285 separate it from whatever follows.
290 Line numbers longer than
292 columns are truncated.
294 Each line of output is preceded by
299 option is not specified, the default is zero.
300 The space taken is in addition to the output line width.
302 Pause before each page if the standard output is a terminal.
304 will write an alert character to standard error and wait for a carriage
305 return to be read on the terminal.
307 Write no diagnostic reports on failure to open a file.
309 Separate text columns by the single character
311 instead of by the appropriate number of
319 Print neither the five-line identifying
320 header nor the five-line trailer usually supplied for each page.
321 Quit printing after the last line of each file without spacing to the
324 Set the width of the line to
326 column positions for multiple text-column output only.
329 option is not specified and the
331 option is not specified, the default width is 72.
334 option is not specified and the
336 option is specified, the default width is 512.
338 A pathname of a file to be printed.
341 operands are specified, or if a
345 the standard input is used.
346 The standard input is used only if no
348 operands are specified, or if a
356 option does not allow the option letter to be separated from its
357 argument, and the options
362 require that both arguments, if present, not be separated from the option
367 utility exits 0 on success, and 1 if an error occurs.
369 Error messages are written to standard error during the printing
370 process (if output is redirected) or after all successful
371 file printing is complete (when printing to a terminal).
375 receives an interrupt while printing to a terminal, it
376 flushes all accumulated error messages to the screen before