pr Command Examples

Paginate or columnate files for printing. More information: https://www.gnu.org/software/coreutils/manual/html_node/pr-invocation.html.

pr {{path/to/file1 path/to/file2 ...}}

pr {{[-h|--header]}} "{{header}}" {{path/to/file1 path/to/file2 ...}}

pr {{[-n|--number-lines]}} {{[-D|--date-format]}} "{{format}}" {{path/to/file1 path/to/file2 ...}}

pr {{[-m|--merge]}} {{[-T|--omit-pagination]}} {{path/to/file1 path/to/file2 ...}}

pr +2:5 {{[-l|--length]}} {{page_length}} {{path/to/file1 path/to/file2 ...}}

pr {{[-o|--indent]}} {{offset}} {{[-W|--page_width]}} {{width}} {{path/to/file1 path/to/file2 ...}}