pr
Options
--pages=<FIRST_PAGE[:LAST_PAGE]>-
pr-help-pages
--header=<STRING>,-h <STRING>-
pr-help-header
--date-format=<FORMAT>,-D <FORMAT>-
pr-help-date-format
--double-space,-d-
pr-help-double-space
--number-lines=<[char][width]>,-n <[char][width]>-
pr-help-number-lines
--first-line-number=<NUMBER>,-N <NUMBER>-
pr-help-first-line-number
--omit-header,-t-
pr-help-omit-header
--length=<PAGE_LENGTH>,-l <PAGE_LENGTH>-
pr-help-page-length
--no-file-warnings,-r-
pr-help-no-file-warnings
--form-feed,-F-
pr-help-form-feed
--width=<width>,-w <width>-
pr-help-column-width
--page-width=<width>,-W <width>-
pr-help-page-width
--across,-a-
pr-help-across
--column=<column>-
pr-help-column
--separator=<char>,-s <char>-
pr-help-column-char-separator
--sep-string=<string>,-S <string>-
pr-help-column-string-separator
--merge,-m-
pr-help-merge
--indent=<margin>,-o <margin>-
pr-help-indent
-J-
pr-help-join-lines
--help-
pr-help-help
Examples
Print multiple files with a default header and footer:
pr {{path/to/file1 path/to/file2 ...}}
Print with a custom centered header:
pr {{[-h|--header]}} "{{header}}" {{path/to/file1 path/to/file2 ...}}
Print with numbered lines and a custom date format:
pr {{[-n|--number-lines]}} {{[-D|--date-format]}} "{{format}}" {{path/to/file1 path/to/file2 ...}}
Print all files together, one in each column, without a header or footer:
pr {{[-m|--merge]}} {{[-T|--omit-pagination]}} {{path/to/file1 path/to/file2 ...}}
Print, beginning at page 2 up to page 5, with a given page length (including header and footer):
pr +2:5 {{[-l|--length]}} {{page_length}} {{path/to/file1 path/to/file2 ...}}
Print with an offset for each line and a truncating custom page width:
pr {{[-o|--indent]}} {{offset}} {{[-W|--page_width]}} {{width}} {{path/to/file1 path/to/file2 ...}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.