BSD 4_3_Tahoe release
[unix-history] / usr / src / man / man1 / pr.1
CommitLineData
9324297b
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
95f51977 5.\" @(#)pr.1 6.1 (Berkeley) 4/29/85
9324297b 6.\"
95f51977 7.TH PR 1 "April 29, 1985"
9324297b
KM
8.UC 4
9.SH NAME
10pr \- print file
11.SH SYNOPSIS
12.B pr
13[ option ] ...
14[ file ] ...
15.SH DESCRIPTION
16.I Pr
17produces a printed listing of one or more
18.I files.
19The output is separated into pages headed by a date,
20the name of the file or a specified header, and the page number.
21If there are no file arguments,
22.I pr
23prints its standard input.
24.PP
25Options apply to all following files but may be reset
26between files:
27.TP
28.BI \- n
29Produce
30.IR n -column
31output.
32.TP
33.BI + n
34Begin printing with page
35.I n.
36.TP
37.B \-h
38Take the next argument as a page header.
39.TP
40.BI \-w n
41For purposes of multi-column output,
42take the width of the page to be
43.I n
44characters instead of the default 72.
45.TP
46.BI \-f
47Use formfeeds instead of newlines to separate pages.
48A formfeed is assumed to use up two blank lines at the top of a page.
49(Thus this option does not affect the effective page length.)
50.TP
51.BI \-l n
52Take the length of the page to be
53.I n
54lines instead of the default 66.
55.TP
56.B \-t
57Do not print the 5-line header or the
585-line trailer normally supplied for each page.
59.TP
60.BI \-s c
61Separate columns by the single character
62.I c
63instead of by the appropriate amount of white space.
64A missing
65.I c
66is taken to be a tab.
67.TP
68.B \-m
69Print all
70.I files
71simultaneously,
72each in one column,
73.PP
74Inter-terminal messages via
75.IR write (1)
76are
77forbidden during a
78.IR pr .
79.SH FILES
80/dev/tty?
81to suspend messages.
82.SH "SEE ALSO"
83cat(1)
84.SH DIAGNOSTICS
85There are no diagnostics when
86.I pr
87is printing on a terminal.