pr
Paginates files for printing
pr [options] [file-list]
The pr utility breaks files into pages, usually in preparation for printing. Each page has a header with the name of the file, date, time, and page number.
The pr utility takes its input from files you specify on the command line or from standard input. The output from pr goes to standard output and is frequently redirected by a pipe to a printer.
Arguments
The file-list contains the pathnames of text files that you want pr to paginate. When you do not specify a file, pr reads standard input.
Options
You can embed options within the file-list. An embedded option affects only files following it on the command line.
+page
Causes output to begin with the specified page. This option begins ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access