32v 1m pr

From Computer History Wiki
Jump to: navigation, search

PR(1) UNIX Programmer's Manual PR(1)


NAME

    pr  -  print file

SYNOPSIS

    pr [ option ] ...  [ file ] ...

DESCRIPTION

    _P_r produces a printed listing of one or more _f_i_l_e_s. The out-
    put is separated into pages headed by a date, the name of
    the file or a specified header, and the page number.  If
    there are no file arguments, _p_r prints its standard input.
    Options apply to all following files but may be reset
    between files:
    -_n   Produce _n-column output.
    +_n   Begin printing with page _n.
    -h   Take the next argument as a page header.
    -w_n  For purposes of multi-column output, take the width of
         the page to be _n characters instead of the default 72.
    -l_n  Take the length of the page to be _n lines instead of
         the default 66.
    -t   Do not print the 5-line header or the 5-line trailer
         normally supplied for each page.
    -s_c  Separate columns by the single character _c instead of
         by the appropriate amount of white space.  A missing _c
         is taken to be a tab.
    -m   Print all _f_i_l_e_s simultaneously, each in one column,
    Inter-terminal messages via _w_r_i_t_e(1) are forbidden during a
    _p_r.

FILES

    /dev/tty?  to suspend messages.

SEE ALSO

    cat(1)

DIAGNOSTICS

    There are no diagnostics when _p_r is printing on a terminal.