Home > Articles

  • Print
  • + Share This
This chapter is from the book

pr

The pr command is used to perform changes to text before it’s sent to a printer. Important options include the following:

Option Description
-l Used to indicate how many lines appear per page of output (for example, pr -l 44 file.txt).
-t Suppresses the page header; the header includes a timestamp and the page number.
-d Double-space the output.
-o Used to specify the indent value (for example, pr -o 8 file.txt).
-w Used to specify the maximum width (number of characters) of each line.
  • + Share This
  • 🔖 Save To Your Account