4.4BSD/usr/share/man/cat1/pr.0

Compare this file to the similar file:
Show the results in this format:

PR(1)                        BSD Reference Manual                        PR(1)

NNAAMMEE
     pprr - print files

SSYYNNOOPPSSIISS
     pprr [_+_p_a_g_e] [--_c_o_l_u_m_n] [--aaddFFmmrrtt] [[--ee] [_c_h_a_r] [_g_a_p]] [--hh _h_e_a_d_e_r] [[--ii]
        [_c_h_a_r] [_g_a_p]] [--ll _l_i_n_e_s] [--oo _o_f_f_s_e_t] [[--ss] [_c_h_a_r]] [[--nn] [_c_h_a_r]
        [_w_i_d_t_h]] [--ww _w_i_d_t_h] [-] [_f_i_l_e _._._.]

DDEESSCCRRIIPPTTIIOONN
     The pprr utility is a printing and pagination filter for text files.  When
     multiple input files are specified, each is read, formatted, and written
     to standard output.  By default, the input is separated into 66-line
     pages, each with

     +o A 5-line header with the page number, date, time, and the pathname of
       the file.

     +o A 5-line trailer consisting of blank lines.

     If standard output is associated with a terminal, diagnostic messages are
     suppressed until the pprr utility has completed processing.

     When multiple column output is specified, text columns are of equal
     width.  By default text columns are separated by at least one _<_b_l_a_n_k_>_.
     Input lines that do not fit into a text column are truncated.  Lines are
     not truncated under single column output.

OOPPTTIIOONNSS
     In the following option descriptions, column, lines, offset, page, and
     width are positive decimal integers and gap is a nonnegative decimal in-
     teger.

     _+_p_a_g_e
           Begin output at page number _p_a_g_e of the formatted input.

     --_c_o_l_u_m_n
           Produce output that is _c_o_l_u_m_n_s wide (default is 1) that is written
           vertically down each column in the order in which the text is re-
           ceived from the input file.  The options --ee and --ii are assumed.
           This option should not be used with --mm. When used with --tt, the min-
           imum number of lines is used to display the output.

     --aa    Modify the effect of the --ccoolluummnn option so that the columns are
           filled across the page in a round-robin order (e.g., when column is
           2, the first input line heads column 1, the second heads column 2,
           the third is the second line in column 1, etc.).  This option re-
           quires the use of the --ccoolluummnn option.

     --dd    Produce output that is double spaced. An extra _<_n_e_w_l_i_n_e_> character
           is output following every <newline> found in the input.

     --ee _[_c_h_a_r_]_[_g_a_p_]
           Expand each input <tab> to the next greater column position speci-
           fied by the formula _n_*_g_a_p_+_1, where _n is an integer > 0.  If _g_a_p is
           zero or is omitted the default is 8.  All _<_t_a_b_> characters in the
           input are expanded into the appropriate number of _<_s_p_a_c_e_>_s. If any
           nondigit character, _c_h_a_r, is specified, it is used as the input tab
           character.

     --FF    Use a _<_f_o_r_m_-_f_e_e_d_> character for new pages, instead of the default
           behavior that uses a sequence o _<_n_e_w_l_i_n_e_> characters.

     --hh _h_e_a_d_e_r
           _h_e_a_d_e_r Use the string _h_e_a_d_e_r to replace the _f_i_l_e _n_a_m_e in the header
           line.

     --ii _[_c_h_a_r_]_[_g_a_p_]
           In output, replace multiple <space>s with <tab>s whenever two or
           more adjacent <space>s reach column positions _g_a_p_+_1, _2_*_g_a_p_+_1, etc.
           If _g_a_p is zero or omitted, default _<_t_a_b_> settings at every eighth
           column position is used.  If any nondigit character, _c_h_a_r, is spec-
           ified, it is used as the output _<_t_a_b_> character.

     --ll _l_i_n_e_s
           Override the 66 line default and reset the page length to _l_i_n_e_s_. If
           _l_i_n_e_s is not greater than the sum of both the header and trailer
           depths (in lines), the pprr utility suppresses output of both the
           header and trailer, as if the --tt option were in effect.

     --mm    Merge the contents of multiple files.  One line from each file
           specified by a file operand is written side by side into text
           columns of equal fixed widths, in terms of the number of column po-
           sitions.  The number of text columns depends on the number of file
           operands successfully opened.  The maximum number of files merged
           depends on page width and the per process open file limit.  The op-
           tions --ee and --ii are assumed.

     --nn _[_c_h_a_r_]_[_w_i_d_t_h_]
           Provide _w_i_d_t_h digit line numbering.  The default for _w_i_d_t_h, if not
           specified, is 5.  The number occupies the first _w_i_d_t_h column posi-
           tions of each text column or each line of --mm output.  If _c_h_a_r (any
           nondigit character) is given, it is appended to the line number to
           separate it from whatever follows. The default for _c_h_a_r is a _<_t_a_b_>.
           Line numbers longer than _w_i_d_t_h columns are truncated.

     --oo _o_f_f_s_e_t
           Each line of output is preceeded by _o_f_f_s_e_t _<_s_p_a_c_e_s_>_s. If the option
           is not specified, the default is zero.  The space taken is in addi-
           tion to the output line width.

     --rr    Write no diagnostic reports on failure to open a file.

     --ss _c_h_a_r
           Separate text columns by the single character _c_h_a_r instead of by
           the appropriate number of _<_s_p_a_c_e_>_s (default for _c_h_a_r is the _<_t_a_b_>
           character).

     --tt    Print neither the five-line identifying header nor the five-line
           trailer usually supplied for each page.  Quit printing after the
           last line of each file without spacing to the end of the page.

     --ww _w_i_d_t_h
           Set the width of the line to _w_i_d_t_h column positions for multiple
           text-column output only.  If the --ww option is not specified and the
           --ss option is not specified, the default width is 72.  If the --ww op-
           tion is not specified and the --ss option is specified, the default
           width is 512.

     _f_i_l_e  A pathname of a file to be printed.  If no _f_i_l_e operands are speci-
           fied, or if a _f_i_l_e operand is `--', the standard input is used.  The
           standard input is used only if no _f_i_l_e operands are specified, or
           if a _f_i_l_e operand is `--'.

     The --ss option does not allow the option letter to be separated from its
     argument, and the options --ee, --ii, and --nn require that both arguments, if
     present, not be separated from the option letter.

EERRRROORRSS

     If pprr receives an interrupt while printing to a terminal, it flushes all
     accumulated error messages to the screen before terminating.

     The pprr utility exits 0 on success, and 1 if an error occurs.

     Error messages are written to standard error during the printing process
     (if output is redirected) or after all successful file printing is com-
     plete (when printing to a terminal).

SSEEEE AALLSSOO
     cat(1),  more(1)

SSTTAANNDDAARRDDSS
     The pprr utility is IEEE Std1003.2 (``POSIX'')
      compatible.

4.4BSD                           June 6, 1993                                3