pr 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .TH PR 1
  2. .SH NAME
  3. pr \- print file
  4. .SH SYNOPSIS
  5. .B pr
  6. [
  7. .I option ...
  8. ]
  9. [
  10. .I file ...
  11. ]
  12. .SH DESCRIPTION
  13. .I Pr
  14. produces a printed listing of one or more
  15. .I files
  16. on its standard output.
  17. The output is separated into pages headed by a date,
  18. the name of the file or a specified header, and the page number.
  19. With no file arguments,
  20. .I pr
  21. prints its standard input.
  22. .PP
  23. Options apply to all following files but may be reset
  24. between files:
  25. .TP
  26. .BI - n
  27. Produce
  28. .IR n -column
  29. output.
  30. .TP
  31. .BI + n
  32. Begin printing with page
  33. .IR n .
  34. .TP
  35. .B -b
  36. Balance columns on last page, in case of multi-column output.
  37. .TP
  38. .B -d
  39. Double space.
  40. .TP
  41. .BI -e n
  42. Set the tab stops for input text every
  43. .I n
  44. spaces.
  45. .TP
  46. .B -h
  47. Take the next argument as a page header
  48. .RI ( file
  49. by default).
  50. .TP
  51. .BI -i n
  52. Replace sequences of blanks in the output
  53. by tabs, using tab stops set every
  54. .I n
  55. spaces.
  56. .TP
  57. .BI -f
  58. Use form feeds to separate pages.
  59. .TP
  60. .BI -l n
  61. Take the length of the page to be
  62. .I n
  63. lines instead of the default 66.
  64. .TP
  65. .B -m
  66. Print all
  67. .I files
  68. simultaneously,
  69. each in one column.
  70. .TP
  71. .BI -n m
  72. Number the lines of each
  73. .IR file .
  74. The numeric argument
  75. .IR m ,
  76. default 5,
  77. sets the width of the line-number field.
  78. .TP
  79. .BI -o n
  80. Offset the left margin
  81. .I n
  82. character positions.
  83. .TP
  84. .BI -p
  85. Pad each file printed to an even number of pages, if necessary.
  86. For two-sided printers,
  87. this will ensure each file will start a new page.
  88. .TP
  89. .BI -s c
  90. Separate columns by the single character
  91. .I c
  92. instead of aligning them with white space.
  93. A missing
  94. .I c
  95. is taken to be a tab.
  96. .TP
  97. .B -t
  98. Do not print the 5-line header or the
  99. 5-line trailer normally supplied for each page.
  100. .TP
  101. .BI -w n
  102. For multi-column output,
  103. take the width of the page to be
  104. .I n
  105. characters instead of the default 72.
  106. .SH SOURCE
  107. .B /sys/src/cmd/pr.c
  108. .SH "SEE ALSO"
  109. .IR cat (1),
  110. .IR lp (1)