pr—prints files
pr [[–columns] [–wwidth] [–a]] [–eck] [–ick] [–drtfp]
[+page] [–nck] [–ooffset] [–llength] [–sseparator]
[– hheader] [–F] [filename ...]
pr [[–m] [–wwidth]] [–eck] [–ick] [–drtfp] [+page] [–nck]
[–ooffset] [–llength] [–sseparator] [–hheader] [–F]
[filename1 filename2 ...]
The pr command formats and prints the contents of a file according to different format options. By default, the listing is sent to stdout and is separated into pages, each headed by the page number, the date and time that the file was last modified, and the name of the file. If no options are specified, the default file format is 66 lines with a five-line header and five-line trailer.
Example A.41.
pr -2dh "TITLE" file1 file2
EXPLANATION
Prints two columns double-sided with header "TITLE" for file1 and file2.
|