PTX(1)
๐ PTX โ like, the permuted index queen ๐
okay so bestie, welcome to ptx from the General Commands Manual (yes that's the manual name, we're fancy here). This is the girl who makes a permuted index out of your file contents, and she eats every single time. ๐
โจ NAME โจ
ptx โ Produce a permuted index of file contents. Output a permuted index, including context, of the words in the input files. Mandatory arguments to long options are mandatory for short options too. With no FILE, or when FILE is -, read standard input. Default is -F /. ๐
No cap, that's the whole vibe. She's out here indexing your words with their lil context, and she's not gonna let you forget that long-option arguments apply to short options too. Periodt.
๐ธ SYNOPSIS ๐ธ
ptx [OPTION]... [INPUT]...
ptx -G [OPTION]... [INPUT [OUTPUT]]
psst โ that second form? That's the -G traditional mode era, and she takes an OUTPUT too. iykyk.
๐ฆ DESCRIPTION ๐ฆ
Produce a permuted index of file contents. Output a permuted index, including context, of the words in the input files. Mandatory arguments to long options are mandatory for short options too. With no FILE, or when FILE is -, read standard input. Default is -F /.
fr fr, that's the entire description and it's iconic. She takes your input files, pulls out the words, and gives you the index but permuted, with context, which is giving very much "every word gets its main character moment". ๐
And btw:
- No
FILEat all? She reads standard input. ๐ซถ FILEis literally-? Also standard input. Same energy.- The default is
-F /. Noted. ๐
๐ OPTIONS ๐
Every single one, bestie. Not skipping a single flag, that's the rule. ๐
-A,--auto-referenceโ output automatically generated references โจ-G,--traditionalโ behave more like System Vptx๐ต (she's going vintage, we love her for it)-F,--flag-truncation <STRING>โ use STRING for flagging line truncations ๐ฉ-M,--macro-name <STRING>โ macro name to use instead ofxx๐ท๏ธ-Oโ generate output as roff directives ๐-Tโ generate output as TeX directives ๐งฎ-R,--right-side-refsโ put references at right, not counted in-wโก๏ธ (yes this matters, remember it)-S,--sentence-regexp <REGEXP>โ for end of lines or end of sentences ๐-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 from72to100๐-w,--width <NUMBER>โ output width in columns, reference excluded ๐-h,--helpโ Print help ๐-V,--versionโ Print version ๐ซ
โญ VERSION โญ
v(uutils coreutils) 0.12.0
๐ฅ EXAMPLES ๐ฅ
These are the receipts, bestie. Commands verbatim, character for character, no editing. Copy-paste away. ๐
Generate a permuted index where the first field of each line is an index reference:
ptx [-r|--references] path/to/file
Generate a permuted index with automatically generated index references:
ptx [-A|--auto-reference] path/to/file
Generate a permuted index with a fixed width:
ptx [-w|--width] width_in_columns path/to/file
Generate a permuted index with a list of filtered words:
ptx [-o|--only-file] path/to/filter path/to/file
Generate a permuted index with SYSV-style behaviors:
ptx [-G|--traditional] path/to/file
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.
heads up bestie โ uutils is literally a work in progress, so some of these examples might justโฆ not pop off. It's not you, it's the WIP. ๐ญ
and that's the whole page, slay ๐
This one's from uutils coreutils, version v(uutils coreutils) 0.12.0, dated 2026-09-25 โ so if you're reading this off that exact PTX(1) page, mwah, you found the right girl. ๐ Go index something, queen. ๐ฆโจ
๐ฆ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms