pr - convert text files for printing
pr [-columns] [+page} [-adFfrts] [-n[char][count]] [-schar] [-ei] [-w width] [-o count] [-l length] [-h text] files
pr [-columns] [+page} [-adFfrts] [-n[char][count]] [-schar] [-ei] [-w width]
[-o count] [-l length] [-h text] files
pr -m [+page} [-adFfrts] [-n[char][count]] [-schar] [-ei] [-w width] [-o count] [-l length] [-h text] files
pr -m [+page} [-adFfrts] [-n[char][count]] [-schar] [-ei] [-w width]
pr formats text into fixed-length pages with headers, multiple columns and other options suitable for hardcopy output.
pr accepts the following option:
Causes pr to print text in columns down the page. Note that pr does not attempt to fold lines which are too long to fit in their column and long lines and control characters will affect output. Column width decreases as the number of columns goes up. -w should be used to make the page wider.
Begin numbering pages at page number page.
Multiple columns are filled from left-to-right down the page.
Each input file is given a column in the output, and printing continues until all input files are exhausted.
Output is double-spaced
Formfeed characters are used instead of trailing blank lines to control page length. -F is a synonym for -f.
Do not print a message if files cannot be opened
Suppress the 5-line header and 5-line trailer on each page
The single character char will be used to separate multi-column output. Note that the columns are no-longer fixed-width with this option.
Precede each column with a line number. count is the desired width of the line numbering (numbers too large are truncated). char can be used to separate numbers from the output line, tab is used if char is not specified.
Not implemented in this version, accepted for comptability.
Width of the page, in characters. Note that excessively long lines are not folded or truncated--they simply keep printing. This may foul column alignment. Defaults to 72.
Length of the page, in lines. Defaults to 66.
Offset each line with a left margin count characters wide. This is in addition to the width specified with the -w option.
Use text in the header for each file, instead of the file name
The -e and -i switches are not implemented in this version.
Input which contains carriage returns, or other ASCII control characters will affect the alignment of columns, and may affect page-length counts. This includes overprinting and backspaces.
Excessively long lines will cause pr to mis-align columns in multi-column output.
The Perl implementation of pr was written by Clinton Pierce, firstname.lastname@example.org.
This program is Copyright 1999, by Clinton Pierce.
Freely redistributable under the Perl Artistic License.
To install PerlPowerTools, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.