| PR(1) | General Commands Manual | PR(1) | 
pr —
| pr | [+page]
      [ -column]
      [-adFfmprt]
      [-e[char][gap]]
      [-hheader]
      [-i[char][gap]]
      [-llines]
      [-n[char][width]]
      [-ooffset]
      [-s[char]]
      [-Ttimefmt]
      [-wwidth] [-]
      [file ...] | 
pr 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
If standard output is associated with a terminal, diagnostic
    messages are suppressed until the pr 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 ⟨blank⟩. Input lines that do not fit into a text column are truncated. Lines are not truncated under single column output.
-column-e
      and -i are assumed. This option should not be used
      with -m. When used with
      -t, the minimum number of lines is used to display
      the output.-a-column 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 requires
      the use of the -column option.-d-e[char][gap]-F-f-F. Additionally pause before beginning
      the first page if the standard output is associated with a terminal.-h
    header-i[char][gap]-l
    linespr utility suppresses output of both the header
      and trailer, as if the -t option were in
    effect.-m-e and
      -i are assumed.-n[char][width]-m output. If
      char (any nondigit character) is given, it is
      appended to the line number to separate it from whatever follows. The
      default for char is a
      ⟨tab⟩. Line numbers longer than
      width columns are truncated.-o
    offset-o option is not specified, the default is zero.
      The space taken is in addition to the output line width.-ppr will write an
      ⟨alert⟩ to standard error and wait for a
      ⟨carriage-return⟩ to be read on
      /dev/tty.-r-s[char]-T-t-w
    width-w
      option is not specified and the -s option is not
      specified, the default width is 72. If the -w
      option is not specified and the -s option is
      specified, the default width is 512.-’, the standard input is used. The
      standard input is used only if no file operands are
      specified, or if a file operand is
      ‘-’.The -s option does not allow the option
    letter to be separated from its argument, and the options
    -e, -i, and
    -n require that both arguments, if present, not be
    separated from the option letter.
pr receives an interrupt while printing to a
  terminal, it flushes all accumulated error messages to the screen before
  terminating.
The pr 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 complete (when printing to a terminal).
pr utility is IEEE Std 1003.1-2008
  (“POSIX.1”) compatible.
pr utility appeared in
  Version 1 AT&T UNIX.
| September 1, 2019 | NetBSD 9.4 |