PR(1)
π
pr β PR(1) General Commands Manual π
πΈ NAME πΈ
pr β paginate or columnate FILE(s) for printing. Thatβs literally the whole main-character job, bestie: get those files print-ready and cute. π
β¨ SYNOPSIS β¨
pr [OPTION]... [FILE]...
π¦ DESCRIPTION π¦
Okay so pr paginates or columnates FILE(s) for printing. It takes your input and formats it for the printer, periodt. β¨
π OPTIONS π
--pages <FIRST_PAGE[:LAST_PAGE]>β This is your print range, bestie: begin at pageFIRST_PAGEand stop at pageLAST_PAGE, using theFIRST_PAGE[:LAST_PAGE]shape. π-h,--header <STRING>β Use the string header to replace the file name in the header line β thatβs the<STRING>you pass, slay. π-D,--date-format <FORMAT>β Use adate-styleFORMATfor the header date. ποΈ-d,--double-spaceβ Double-spaced output, periodt: an extra<newline>character is output following every<newline>found in the input. π double the newlines, double the drama.-n,--number-lines [<[char][width]>]β Give lineswidth-digit numbering. Ifwidthisnβt specified, the default is5. The number occupies the firstwidthcolumn positions of each text column or each line of-moutput. Ifchar(any non-digit character) is given, it is appended to the line number to separate it from whatever follows. The default forcharis a<tab>. Line numbers longer thanwidthcolumns are truncated. π-N,--first-line-number <NUMBER>β Start counting withNUMBERat the 1st line of the first page printed. π’-t,--omit-headerβ Write neither the five-line identifying header nor the five-line trailer usually supplied for each page. Quit writing after the last line of each file without spacing to the end of the page. π no header, no trailer, no extra page spacing.-T,--omit-paginationβ Omit page headers and trailers, and eliminate any pagination by form feeds set in input files. π-l,--length <PAGE_LENGTH>β Override the66-line default (the default number of lines of text is56, and with-Fitβs63) and reset the page length tolines. Iflinesis not greater than the sum of both the header and trailer depths (in lines),prshall suppress both the header and trailer, as if the-toption were in effect. β οΈ tiny page lengths can eat your header/trailer, so read that twice.-r,--no-file-warningsβ Omit the warning when a file cannot be opened. π-F,--form-feedβ Use a<form-feed>for new pages, instead of the default behavior that uses a sequence of<newline>s. π§-w,--width <width>β Set the width of the line towidthcolumn positions for multiple text-column output only. If-wis not specified and-sis not specified, the default width shall be72. If-wis not specified and-sis specified, the default width shall be512. π-W,--page-width <width>β Set page width toPAGE_WIDTH(72) characters always, truncate lines, except when the-Joption is set, with no interference with-Sor-s. π₯-a,--acrossβ Modify the effect of the-column option so the columns are filled across the page in a round-robin order. Example: when column is2, the first input line heads column 1, the second heads column 2, the third is the second line in column 1, and so on. π--columns <columns>β Produce multi-column output arranged incolumnscolumns (the default shall be1) and written down each column in the order the text is received from the input file. This option should not be used with-m. The options-eand-ishall be assumed for multiple text-column output. Whether or not text columns are produced with identical vertical lengths is unspecified, but a text column shall never exceed the length of the page (see the-loption). When used with-t, use the minimum number of lines to write the output. π«Ά-s,--separator [<char>]β Separate text columns by the single charactercharinstead of by the appropriate number of<space>s (the default forcharis the<tab>character). π-S,--sep-string [<string>]β Separate columns bySTRING. Without-S, the default separator is<TAB>with-Jand<space>otherwise (same as-S\" \"), and there is no effect on column options. π-m,--mergeβ Merge files. Standard output shall be formatted so theprutility writes one line from each file specified by a file operand, side by side into text columns of equal fixed widths, in terms of the number of column positions. Implementations shall support merging of at least nine file operands. π-o,--indent <margin>β Each line of output shall be preceded by offset<space>s. If-ois not specified, the default offset shall be zero. The space taken is in addition to the output line width (see the-woption below). πΈ-J,--join-linesβ Merge full lines, turns off-Wline truncation, no column alignment, and--sep-string[=STRING]sets separators. π--helpβ Print help information. π-e,--expand-tabs <[CHAR][WIDTH]>β Expand inputCHARs (TABs) to tabWIDTH(8). β¨-V,--versionβ Print version. π[files] [default: -]β The file operands, defaulting to-. π
π EXTRA π
If no FILE(s) are given, or if FILE is -, read standard input. π
When creating multicolumn output, columns will be of equal width. When using the -s option to separate columns, the default separator is a single tab character. When using the -S option to separate columns, the default separator is a single space character. π¦
π VERSION π
The version is v(uutils coreutils) 0.12.0. Slay. π
π Cute little sign-off: this page is from source/version v(uutils coreutils) 0.12.0, dated 2026-09-17. Stay paginated, bestie! π
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms