PTX(1)

๐Ÿ’… PTX(1) โ€” the permuted index girly โœจ

okay so bestie, we're in the User Commands section of the manual, and this one is literally called ptx ๐ŸŽ€ she makes a permuted index of file contents. no cap.


๐ŸŒธ NAME ๐ŸŒธ

ptx โ€” produce a permuted index of file contents


โœจ SYNOPSIS โœจ

ptx [OPTION]... [INPUT]...   (without -G)
ptx -G [OPTION]... [INPUT [OUTPUT]]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

Output a permuted index, including context, of the words in the input files. it's giving index energy, it's giving context ๐Ÿ’œ

With no FILE, or when FILE is -, read standard input. yes bestie, - means stdin, classic.

Mandatory arguments to long options are mandatory for short options too. iykyk ๐Ÿซถ
  • -A, --auto-reference โ€” output automatically generated references
  • -G, --traditional โ€” behave more like System V ptx
  • -F, --flag-truncation=STRING โ€” use STRING for flagging line truncations. the default is /
  • -M, --macro-name=STRING โ€” macro name to use instead of xx
  • -O, --format=roff โ€” generate output as roff directives
  • -R, --right-side-refs โ€” put references at right, not counted in -w
  • -S, --sentence-regexp=REGEXP โ€” for end of lines or end of sentences
  • -T, --format=tex โ€” generate output as TeX directives
  • -W, --word-regexp=REGEXP โ€” use REGEXP to match each keyword
  • -b, --break-file=FILE โ€” word break characters in this FILE
  • -f, --ignore-case โ€” fold lower case to upper case for sorting
  • -g, --gap-size=NUMBER โ€” gap size in columns between output fields
  • -i, --ignore-file=FILE โ€” read ignore word list from FILE
  • -o, --only-file=FILE โ€” read only word list from this FILE
  • -r, --references โ€” first field of each line is a reference
  • -t, --typeset-mode โ€” change the default width from 72 to 100
  • -w, --width=NUMBER โ€” output width in columns, reference excluded
  • --help โ€” display this help and exit
  • --version โ€” output version information and exit

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Written by F. Pinard. periodt. ๐Ÿ’–


๐ŸŽ€ REPORTING BUGS ๐ŸŽ€

Report bugs to: <bug-coreutils@gnu.org>. Report any translation bugs to: <https://translationproject.org/team/>. GNU coreutils home page: <https://www.gnu.org/software/coreutils/> General help using GNU software: <https://www.gnu.org/gethelp/>

like, if something's broken, tell the coreutils girlies, they'll handle it ๐Ÿ™ˆ


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.

There is NO WARRANTY โ€” bestie i need you to read that part twice. no warranty, fr fr. ๐Ÿ˜ญ

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

Full documentation <https://www.gnu.org/software/coreutils/ptx> or available locally via: info '(coreutils) ptx invocation'


and that's the whole vibe check, bestie ๐Ÿ’… this was GNU coreutils 9.12, dated September 2026 โ€” iconic, no notes, slay ๐Ÿฆ‹โœจ

๐Ÿ“ฆ where this page comes from