pr - convert text files for printing
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
p
\bpr
\br [+PAGE] [-COLUMN] [-abcdfFmrtv] [-e[in-tab-char[in-tab-
width]]] [-h header] [-i[out-tab-char[out-tab-width]]] [-l
page-length] [-n[number-separator[digits]]] [-o left-
margin] [-s[column-separator]] [-w page-width] [file...]
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
This manual page documents the GNU version of p
\bpr
\br. p
\bpr
\br
prints on the standard output a paginated and optionally
multicolumn copy of the text files given on the command
line, or of the standard input if no files are given or
when the file name `-' is encountered. Form feeds in the
input cause page breaks in the output.
O
\bOP
\bPT
\bTI
\bIO
\bON
\bNS
\bS
+_
\bP_
\bA_
\bG_
\bE Begin printing with page _
\bP_
\bA_
\bG_
\bE.
-_
\bC_
\bO_
\bL_
\bU_
\bM_
\bN
Produce _
\bC_
\bO_
\bL_
\bU_
\bM_
\bN-column output and print columns
down. The column width is automatically decreased
as _
\bC_
\bO_
\bL_
\bU_
\bM_
\bN increases; unless you use the -_
\bw option
to increase the page width as well, this option
might cause some columns to be truncated.
-_
\ba Print columns across rather than down.
-_
\bb Balance columns on the last page.
-_
\bc Print control characters using hat notation (e.g.,
`^G'); print other unprintable characters in octal
-_
\bd Double space the output.
-_
\be[_
\bi_
\bn-_
\bt_
\ba_
\bb-_
\bc_
\bh_
\ba_
\br[_
\bi_
\bn-_
\bt_
\ba_
\bb-_
\bw_
\bi_
\bd_
\bt_
\bh]]
Expand tabs to spaces on input. Optional argument
_
\bi_
\bn-_
\bt_
\ba_
\bb-_
\bc_
\bh_
\ba_
\br is the input tab character, default
tab. Optional argument _
\bi_
\bn-_
\bt_
\ba_
\bb-_
\bw_
\bi_
\bd_
\bt_
\bh is the input
tab character's width, default 8.
-_
\bF, -_
\bf Use a formfeed instead of newlines to separate out-
-_
\bh _
\bh_
\be_
\ba_
\bd_
\be_
\br
Replace the filename in the header with the string
_
\bh_
\be_
\ba_
\bd_
\be_
\br.
-_
\bi[_
\bo_
\bu_
\bt-_
\bt_
\ba_
\bb-_
\bc_
\bh_
\ba_
\br[_
\bo_
\bu_
\bt-_
\bt_
\ba_
\bb-_
\bw_
\bi_
\bd_
\bt_
\bh]]
Replace spaces with tabs on output. Optional argu-
ment _
\bo_
\bu_
\bt-_
\bt_
\ba_
\bb-_
\bc_
\bh_
\ba_
\br is the output tab character,
default tab. Optional argument _
\bo_
\bu_
\bt-_
\bt_
\ba_
\bb-_
\bw_
\bi_
\bd_
\bt_
\bh is
the output tab character's width, default 8.
-_
\bl _
\bp_
\ba_
\bg_
\be-_
\bl_
\be_
\bn_
\bg_
\bt_
\bh
Set the page length to _
\bp_
\ba_
\bg_
\be-_
\bl_
\be_
\bn_
\bg_
\bt_
\bh lines. The
default is 66. If _
\bp_
\ba_
\bg_
\be-_
\bl_
\be_
\bn_
\bg_
\bt_
\bh is less than 10, the
headers and footers are omitted, as if the -_
\bt
-_
\bm Print all files in parallel, one in each column.
-_
\bn[_
\bn_
\bu_
\bm_
\bb_
\be_
\br-_
\bs_
\be_
\bp_
\ba_
\br_
\ba_
\bt_
\bo_
\br[_
\bd_
\bi_
\bg_
\bi_
\bt_
\bs]]
Precede each column with a line number; with paral-
lel files, precede each line with a line number.
Optional argument _
\bn_
\bu_
\bm_
\bb_
\be_
\br-_
\bs_
\be_
\bp_
\ba_
\br_
\ba_
\bt_
\bo_
\br is the character
to print after each number, default tab. Optional
argument _
\bd_
\bi_
\bg_
\bi_
\bt_
\bs is the number of digits per line
-_
\bo _
\bl_
\be_
\bf_
\bt-_
\bm_
\ba_
\br_
\bg_
\bi_
\bn
Offset each line with a margin _
\bl_
\be_
\bf_
\bt-_
\bm_
\ba_
\br_
\bg_
\bi_
\bn spaces
wide. The total page width is this offset plus the
width set with the -_
\bw option.
-_
\br Do not print a warning message when an argument
file cannot be opened. Failure to open a file
still makes the exit status nonzero, however.
-_
\bs[_
\bc_
\bo_
\bl_
\bu_
\bm_
\bn-_
\bs_
\be_
\bp_
\ba_
\br_
\ba_
\bt_
\bo_
\br]
Separate columns by the single character _
\bc_
\bo_
\bl_
\bu_
\bm_
\bn-
_
\bs_
\be_
\bp_
\ba_
\br_
\ba_
\bt_
\bo_
\br, default tab, instead of spaces.
-_
\bt Do not print the 5-line header and the 5-line
trailer that are normally on each page, and do not
fill out the bottoms of pages (with blank lines or
-_
\bv Print unprintable characters in octal backslash
-_
\bw _
\bp_
\ba_
\bg_
\be-_
\bw_
\bi_
\bd_
\bt_
\bh
Set the page width to _
\bp_
\ba_
\bg_
\be-_
\bw_
\bi_
\bd_
\bt_
\bh columns. The