Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pr(1) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cat(1)

fmt(1)

lp(1)

lpr(1)




pr(1) pr(1)
NAME pr - formats text for a print device SYNOPSIS pr [+pageno] [-columns] [-a] [-d] [-eck] [-f] [-h head] [-ick] [-lk] [-m] [-nck] [-ok] [-p] [-r] [-sc] [-t] [-wk] [file]... ARGUMENTS +pageno Specifies the page number (pageno) to begin formatting. The default is 1. -columns Specifies the number of columns (columns) to produce in the output. The default is 1. The options -e and -i are assumed for multicolumn output. -a Prints multicolumn output across the page. -d Produces double-spaced output. -eck Expands input tabs to character positions k+1, 2*k+1, 3*k+1, etc. If k is 0 or is omitted, 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 (default for c is the tab character). -f Uses the form-feed character for new pages (default is to use a sequence of line-feeds). Pause before beginning the first page if the standard output is associated with a terminal. file Specifies the file to be formatted. If file is -, or if no files are specified, the standard input is assumed. -h head Uses the next argument as the header instead of the filename. -ick Replaces white space wherever possible by inserting tabs to character positions k+1, 2*k+1, 3*k+1, etc, in the output. If k is 0 or is omitted, default tab settings at every eighth position are assumed. If c (any nondigit character) is given, it is treated as the output tab character (default for c is the tab character). -lk Sets the length of a page to k lines (default is 66). January 1992 1



pr(1) pr(1)
-m Merges and formats all files simultaneously, one per column (overrides the -k, and -a options). -nck Provides k-digit line numbering (default for k is 5). The number occupies the first k+1 character positions of each column of normal output or each line of -m output. If c (any nondigit character) is given, it is appended to the line number to separate it from whatever follows (default for c is a tab). -ok Offsets each line by k character positions (default is 0). The number of character positions per line is the sum of the width and offset. -p Pauses before beginning each page if the output is directed to a terminal (pr will ring the bell at the terminal and wait for a carriage return). -r Prints no diagnostic reports on failure to open files. -sc Separates columns by the single character c instead of by the appropriate number of spaces (default for c is a tab). -t Prints neither the five-line identifying header nor the five-line trailer normally supplied for each page. Quit formatting after the last line of each file without spacing to the end of the page. -wk Sets the width of a line to k character positions instead of the default 72 characters for multicolumn output. This option must be used with the -k (number of columns) option. DESCRIPTION pr formats the named files on the standard output. By default, the listing is separated into pages, each headed by the page number, a date and time, and the name of the file. By default, columns are of equal width, separated by at least one space; lines which do not fit are truncated. If the -s option is used, lines are not truncated and columns are separated by the separation character. If the standard output is associated with a terminal, error messages are withheld until pr has completed formatting. EXAMPLES The command: pr -3dh "file list" file1 file2 2 January 1992



pr(1) pr(1)
formats file1 and file2 as a double-spaced, three-column listing headed by ``file list''. The command: pr -e9 -t < file1 > file2 writes file1 on file2, expanding tabs to columns 10, 19, 28, 37, and so on. FILES /bin/pr Executable file /dev/tty* Device files SEE ALSO cat(1), fmt(1), lp(1), lpr(1) January 1992 3

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026