PR(1)
π pr(1): convert text files for printing π
pr β convert text files for printing. This is the pr(1) page, bestie, straight out of the User Contributed Perl Documentation section. It's giving classic Unix but make it print-coded π.
β¨ SYNOPSIS β¨
"pr [-columns] [+page] [-adFfrts] [-n[char][count]] [-schar] [-ei] [-w
width]" "[-o count] [-l length] [-h text] files"
"pr -m [+page] [-adFfrts] [-n[char][count]] [-schar] [-ei] [-w width]"
"[-o count] [-l length] [-h text] files"
π DESCRIPTION π
Okay so pr formats text into fixed-length pages with headers, multiple columns, and other options suitable for hardcopy output. Basically: it makes your text act like it's about to get printed, and honestly? Main character energy π¨οΈβ¨.
π OPTIONS π
pr accepts the following option (yes, it says βoptionβ singular β iconic):
-columnsβ Causesprto print text in columns down the page. Important vibe check:prdoes not attempt to fold lines which are too long to fit in their column, and long lines and control characters will affect output. Column width decreases as the number of columns goes up.-wshould be used to make the page wider.+pageβ Begin numbering pages at page number page.-aβ Multiple columns are filled from left-to-right down the page.-mβ Each input file is given a column in the output, and printing continues until all input files are exhausted.-dβ Output is double-spaced.-fβ Formfeed characters are used instead of trailing blank lines to control page length.-Fis a synonym for-f.-rβ Do not print a message if files cannot be opened.-tβ Suppress the 5-line header and 5-line trailer on each page.-scharβ The single character char will be used to separate multi-column output. Note that the columns are no-longer fixed-width with this option.-n[char[count]]β Precede each column with a line number. count is the desired width of the line numbering (numbers too large are truncated). char can be used to separate numbers from the output line; tab is used if char is not specified.-eβ Not implemented in this version, accepted for comptability.-iβ Not implemented in this version, accepted for comptability.-w widthβ Width of the page, in characters. Note that excessively long lines are not folded or truncated--they simply keep printing. This may foul column alignment. Defaults to 72.-l lengthβ Length of the page, in lines. Defaults to 66.-o countβ Offset each line with a left margin count characters wide. This is in addition to the width specified with the-woption.-h textβ Use text in the header for each file, instead of the file name.
β οΈ tiny warning bestie:-eand-iare not implemented in this version β they're just accepted for comptability. Respect the lore π.
π BUGS π
The -e and -i switches are not implemented in this version.
Input which contains carriage returns, or other ASCII control characters will affect the alignment of columns, and may affect page-length counts. This includes overprinting and backspaces.
Excessively long lines will cause pr to mis-align columns in multi-column output.
π AUTHOR π
The Perl implementation of pr was written by Clinton Pierce, clintp@geeksalad.org.
π COPYRIGHT and LICENSE π
This program is Copyright 1999, by Clinton Pierce.
Freely redistributable under the Perl Artistic License.
okay bye bestie β this page is PR(1) from perl v5.42.2, dated 2026-02-15. go format some text and slay πβ¨
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms