PR(1)

๐Ÿ“ฆ
version 9.10 ยท 5 versions
, in ubuntu stonking

๐Ÿ’– 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 -a is 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 ^G and 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 -W line 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 -t if 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 -w or -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 -w is set โœ‚๏ธ
  • -S[STRING], --sep-string[=STRING] โ€” separate columns by STRING. without -S: default separator is <TAB> with -J and <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 -J option is set. no interference with -S or -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:


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ


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