PR(1) DOMAIN/IX Reference Manual (SYS5) PR(1)
NAME
pr - print files
USAGE
pr [ options ] [ files ]
DESCRIPTION
Pr prints the named files on the standard output. If you
specify a dash (-) for file, or if you specify no files at
all, the standard input is assumed.
By default, pr separates each listing into pages, each
headed by the page number, a date and time, and the name of
the file. Also by default, columns are of equal width,
separated by at least one space; lines that do not fit are
truncated.
If the standard output is associated with a terminal, pr
withholds error messages until printing is complete. The
options below may appear singly or be combined in any order.
OPTIONS
+k Begin printing with page k (the default is one).
-k Produce k-column output (the default is one). The
options -e and -i are assumed for multicolumn out-
put.
-a Print multicolumn output across the page.
-m Merge and print all files simultaneously, one per
column (override the -k, and -a options).
-d Doublespace the output.
-eck Expand input tabs to character positions k+1,
2*k+1, 3*k+1, etc. If k is zero or is omitted,
the default tab settings at every eighth position
are assumed. Tab characters in the input are
expanded into the appropriate number of spaces.
If c (any nondigit character) is given, it is
treated as the input tab character (the default
for c is the tab character).
-ick In output, replace white space wherever possible
by inserting tabs to character positions k+1,
2*k+1, 3*k+1, etc. If k is 0 or is omitted, the
default tab settings at every eighth position are
assumed. If c (any nondigit character) is given,
it is treated as the output tab character (the
default for c is the tab character).
Printed 6/10/85 PR-1
PR(1) DOMAIN/IX Reference Manual (SYS5) PR(1)
-nck Provide k-digit line numbering (the default for k
is five). The number occupies the first k+1 char-
acter positions of each column of normal output or
each line of -m output. If c (any nondigit char-
acter) is given, it is appended to the line number
to separate it from whatever follows (the default
for c is a tab).
-wk Set the width of a line to k character positions
(the default is 72 for equal-width multicolumn
output; there is no limit otherwise).
PR-2 Printed 6/10/85
PR(1) DOMAIN/IX Reference Manual (SYS5) PR(1)
-ok Offset each line by k character positions (the
default is zero). The number of character posi-
tions per line is the sum of the width and offset.
-lk Set the length of a page to k lines (the default
is 66).
-h Use the next argument as the header to be printed
instead of the filename.
-p Pause before beginning each page if the output is
directed to a terminal (pr rings the bell at the
terminal and waits for a carriage return).
-f Use a form feed character for new pages (the
default is to use a sequence of line feeds).
Pause before beginning the first page if the stan-
dard output is associated with a terminal.
-r Print no diagnostic reports on failure to open
files.
-t Print neither the five-line identifying header nor
the five-line trailer normally supplied for each
page. Quit printing after the last line of each
file without spacing to the end of the page.
-sc Separate columns by the single character c instead
of by the appropriate number of spaces (the
default for c is a tab).
EXAMPLES
To print file1 and file2 as a doublespaced, three-column
listing headed by ``file list'', use the following command:
pr -3dh ``file list'' file1 file2
Use this to write file1 on file2, expanding tabs to columns
10, 19, 28, 37, ...:
pr -e9 -t <file1 >file2
RELATED INFORMATION
cat (1).
Printed 6/10/85 PR-3