pr(1)
π pr(1) β the paginate-and-columnate bestie π
okay so real talk, you found the manual page for pr from the General Commands Manual section of the manual pages. she's giving printing-prep energy and honestly? iconic.
β¨ NAME β¨
pr β paginate or columnate FILE(s) for printing
like, she takes your files and makes them cute and page-shaped for when they hit actual paper. no cap. π¨οΈ
πΈ SYNOPSIS πΈ
pr [--pages] [-h|--header] [-D|--date-format] [-d|--double-space]
[-n|--number-lines] [-N|--first-line-number] [-t|--omit-header]
[-T|--omit-pagination] [-l|--length] [-r|--no-file-warnings]
[-F|--form-feed] [-w|--width] [-W|--page-width] [-a|--across] [--column]
[-s|--separator] [-S|--sep-string] [-m|--merge] [-o|--indent] [-J ]
[--help] [-e|--expand-tabs] [-V|--version] [files]
π DESCRIPTION π
paginate or columnate FILE(s) for printing
that's the whole vibe bestie, she paginates and columnates. periodt.
β¨ OPTIONS β¨
--pages <FIRST_PAGE[:LAST_PAGE]>β start printing at pageFIRST_PAGEand stop at pageFIRST_PAGE[:LAST_PAGE]. yes, you can gatekeep pages now. π-h,--header <STRING>β swap the file name in the header line for the string header. main character energy for your header. π-D,--date-format <FORMAT>β use adate-style FORMAT for the date up in the header. fancy.-d,--double-spaceβ output comes out double spaced. an extra<newline>character gets output after every<newline>found in the input. roomy. πΈ-n,--number-lines <[char][width]>β gives you line numbering with width digits. the default for width, if you don't specify it, is5. the number takes up the first width column positions of each text column or each line of-moutput. if char is given (any non-digit character), it gets appended to the line number to separate it from whatever comes next. the default for char is a<tab>. and heads up: line numbers longer than width columns are truncated. βοΈ-N,--first-line-number <NUMBER>β start counting with NUMBER at the 1st line of the first page printed. cute lil head start. β-t,--omit-headerβ write neither the five-line identifying header nor the five-line trailer that's usually supplied for each page. quit writing after the last line of each file, with no spacing to the end of the page. bare minimum, no decor. π-T,--omit-paginationβ omit page headers and trailers, and eliminate any pagination by form feeds set in input files. she's not doing pages today.-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 to lines. if lines is not greater than the sum of both the header and trailer depths (in lines), thenprshall suppress both the header and the trailer, as if the-toption were in effect. so like, don't make it too tiny or she just gives up on headers entirely. π-r,--no-file-warningsβ omit the warning when a file cannot be opened. we're not talking about it. π-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 to width column positions, and this one is for multiple text-column output only. if the-woption is not specified and the-soption is not specified, the default width shall be72. if the-woption is not specified and the-soption is specified, the default width shall be512. the way those numbers differβ¦ iykyk. π-W,--page-width <width>β set page width toPAGE_WIDTH(72) characters always, truncate lines, except when the-Joption is set, and with no interference with-Sor-s.-a,--acrossβ modifies the effect of the-column option so the columns get filled across the page in a round-robin order. for 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. slay, rotating. π--column <column>β produce multi-column output arranged in column columns (the default shall be1) and written down each column in the order in which 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 character char instead of by the appropriate number of<space>s (default for char is the<tab>character). π-S,--sep-string [<string>]β separate columns by STRING. without-S: the default separator is<TAB>with-Jand<space>otherwise (same as-S" "). 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. nine besties holding hands fr fr. π«Ά-o,--indent <margin>β each line of output shall be preceded by offset<space>s. if the-ooption is not specified, the default offset shall be zero. the space taken is in addition to the output line width (see the-woption below).-Jβ merge full lines, turns off-Wline truncation, no column alignment,--sep-string[=STRING]sets separators.--helpβ print help information. π-e,--expand-tabs <[CHAR][WIDTH]>β expand input CHARs (TABs) to tab WIDTH (8). π±-V,--versionβ print version.[files]β the files, bestie.
π EXTRA π
if no FILE(s) are given, or if FILE is -, read standard input. so - is giving "just read stdin, don't make it weird." π¦
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 β
v(uutils coreutils) 0.7.0
and that's the whole page, bestie. this is pr from uutils coreutils, version 0.7.0, documented as pr(1) in the General Commands Manual. go paginate something pretty. mwah. π
β¨π
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
- fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms