Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pr(1) — BSD/386 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cat(1)

more(1)

head(1)

tail(1)

PR(1)                        BSD Reference Manual                        PR(1)

NAME
     pr - print files

SYNOPSIS
     pr [-LdfmTtW] [-[1..9]] [-+ page] [-p page] [-c column] [-h header] [-l
        lines] [-s char] [<file>...]

DESCRIPTION
     pr prints the specified files to standard output.  If no file is speci-
     fied, pr will read from standard input.  Each file can be printed in mul-
     tiple columns, or all files can be printed simultaneous, each in their
     own column.  By default, each page has a headline, containing the last
     modification date of the file, the file name, and the current page num-
     ber.

     Formfeeds in the input data stream will cause pr to continue printing on
     top of a new page.

OPTIONS
     -+    This option is implemented as a partial backwards compatibility
           with the +<page> argument in BSD 4.3.  In this implementation, it
           is an alias for the '-p' option.

     -1..9
           Print multiple columns on a page.  This option is backwards compat-
           ible with the -<number> option in BSD 4.2, however, in this case,
           only a single digit can be used.  If 10 or more columns are re-
           quired, use the -c option.

     -p    Begin printing on specified page.

     -c    Print specified number of columns on each page.

     -f    Use formfeeds rather than counting lines per page.

     -h    Replace the normal header with the specified string.

     -l    Set the length of the output page to be the specified number of
           lines

     -n    Print line numbers in the first column of the page.

     -m    Print all files simultaneously, using one column for each file.

     -s    Separate columns by the specified character.

     -T    Do not wrap lines.  Lines longer than the current column length
           will be truncated.

     -t    Do not print the header.

     -W    Wrap lines which is longer than current column width.  This is the
           default.

     -w    Set column width to the specified number of characters.

BUGS
     By default, lines longer than the current column length will be wrapped.
     There is no way to provide lines printed longer than the specified column
     length.

     The following s a re-implementation of the pr command from BSD 4.3.  The
     [-+ page] option has been implemented as [-p page] or [-+ page] as POSIX
     require all options to start with a dash.  Similar all options must pre-
     cede any file names, and will therefore apply to all files names on the
     command line.

SEE ALSO
     cat(1), more(1), head(1), tail(1)

Author
     Bjorn Satdeva

4.3 Berkeley Distribution       March 27, 1993                               2
























































Typewritten Software • bear@typewritten.org • Edmonds, WA 98026