PR(1)
๐ PR(1) โ the pr girlie pop manual ๐
okay so bestie, you just opened the manual page for pr, section 1 of the user commands, and honestly? she's a whole vibe. paginate, columnate, print โ the full slay. let's get into it ๐
โจ NAME โจ
pr โ convert text files for printing ๐จ๏ธโจ
๐ธ SYNOPSIS ๐ธ
pr [OPTION]... [FILE]...
๐ฆ DESCRIPTION ๐ฆ
Paginate or columnate FILE(s) for printing. that's the whole job. she takes your messy text and makes it page-shaped and cute. periodt.
if you give her no FILE, or if FILE is -, she reads from standard input. yes gurl, pipes count, we love a flexible icon ๐ซถ
lowkey important, highkey mandatory: mandatory arguments to long options are also mandatory for the short options. no skipping, bestie.
here's the full menu of flags, no skips, no cuts, every single one ๐:
+FIRST_PAGE[:LAST_PAGE],--pages=FIRST_PAGE[:LAST_PAGE]โ begin printing with page FIRST_PAGE, and stop at LAST_PAGE. literally "start here, end there" energy ๐ฏ-COLS,--columns=COLSโ output COLS columns and print them going down, unless-ais used. also balances the number of lines in the columns on each page, so it's giving very even, very symmetrical, very โจaestheticโจ-a,--acrossโ print columns across instead of down. use it together with-COLUMN. she's the sideways queen ๐-c,--show-control-charsโ use hat notation like^Gand octal backslash notation. shows you the invisible gremlins ๐ป-d,--double-spaceโ double space the output. breathing room, we love to see it ๐ฎโ๐จ-D,--date-format=FORMATโ use FORMAT for the header date ๐-e[CHAR[WIDTH]],--expand-tabs[=CHAR[WIDTH]]โ expand input CHARs (TABs) to tab WIDTH (8) ๐-F,-f,--form-feedโ use form feeds instead of newlines to separate pages. the difference: a 3-line page header with-F, or a 5-line header and trailer without-F๐-h,--header=HEADERโ use a centered HEADER instead of the filename in the page header.-h ""prints a blank line. and listen โ don't use-h"", fr fr ๐-i[CHAR[WIDTH]],--output-tabs[=CHAR[WIDTH]]โ replace spaces with CHARs (TABs) to tab WIDTH (8)-J,--join-linesโ merge full lines. turns off-Wline truncation, gets rid of column alignment, and--sep-string[=STRING]sets the separators ๐งฒ-l,--length=PAGE_LENGTHโ set the page length to PAGE_LENGTH (66) lines. default number of lines of text is 56, and 63 with-F. implies-tif PAGE_LENGTH <= 10 ๐-m,--mergeโ print all files in parallel, one in each column, truncate lines, but join lines of full length with-J. it's giving group project but everyone actually shows up ๐ค-n[SEP[DIGITS]],--number-lines[=SEP[DIGITS]]โ number lines, use DIGITS (5) digits, then SEP (TAB). default counting starts with the 1st line of the input file ๐ข-N,--first-line-number=NUMBERโ start counting with NUMBER at the 1st line of the first page printed (peep+FIRST_PAGE) ๐ซ-o,--indent=MARGINโ offset each line with MARGIN (zero) spaces. does not affect-wor-W, and MARGIN will be added to PAGE_WIDTH ๐-r,--no-file-warningsโ omit the warning when a file cannot be opened. no drama, no notifs, we're unbothered ๐-s[CHAR],--separator[=CHAR]โ separate columns by a single character. default for CHAR is the<TAB>character without-w, and 'no char' with-w.-s[CHAR]turns off line truncation of all 3 column options (-COLUMN|-a -COLUMN|-m) except when-wis set โ๏ธ-S[STRING],--sep-string[=STRING]โ separate columns by STRING. without-S: default separator is<TAB>with-Jand<space>otherwise (same as-S" "). no effect on column options ๐ค-t,--omit-headerโ omit page headers and trailers. implied if PAGE_LENGTH <= 10 ๐ โโ๏ธ-T,--omit-paginationโ omit page headers and trailers, and eliminate any pagination by form feeds set in input files-v,--show-nonprintingโ use octal backslash notation ๐-w,--width=PAGE_WIDTHโ set page width to PAGE_WIDTH (72) characters, for multiple text-column output only.-s[char]turns it off (72) ๐-W,--page-width=PAGE_WIDTHโ set page width to PAGE_WIDTH (72) characters, always, and truncate lines โ except when the-Joption is set. no interference with-Sor-s๐ง--helpโ display this help and exit ๐--versionโ output version information and exit ๐ท๏ธ
๐ AUTHOR ๐
Written by Pete TerMaat and Roland Huebner. legends, honestly. thank you for your service ๐ซก
๐ญ REPORTING BUGS ๐ญ
found a bug? spill, bestie:
- Report bugs to:
bug-coreutils@gnu.org - GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
- Report any translation bugs to: <https://translationproject.org/team/>
๐ฅ SEE ALSO ๐ฅ
- Full documentation <https://www.gnu.org/software/coreutils/pr> โ or available locally via:
info '(coreutils) pr invocation'
Packaged by Ubuntu (9.10-1ubuntu2). Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ๐ (yes, ALL CAPS NO WARRANTY, they really meant it)
and that's the whole page, bestie ๐ซถ go forth and paginate. this was GNU coreutils 9.10, dated August 2026, and you just read the PR(1) manual. mwah ๐ slay, stay gorgeous, and always check your --sep-string ๐โจ๐
๐ฆ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms