commands.sh

ptx

linux

Generate a permuted index of words from text files.

More info →

Options (5)

-r, --referencesboolean

Generate a permuted index where the first field of each line is an index reference

Example: ptx {{[-r|--references]}} {{path/to/file}}
-A, --auto-referenceboolean

Generate a permuted index with automatically generated index references

Example: ptx {{[-A|--auto-reference]}} {{path/to/file}}
-w, --widthboolean

Generate a permuted index with a fixed width

Example: ptx {{[-w|--width]}} {{width_in_columns}} {{path/to/file}}
-o, --only-fileboolean

Generate a permuted index with a list of filtered words

Example: ptx {{[-o|--only-file]}} {{path/to/filter}} {{path/to/file}}
-G, --traditionalboolean

Generate a permuted index with SYSV-style behaviors

Example: ptx {{[-G|--traditional]}} {{path/to/file}}

Examples (5)

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
made by @shridhargupta | data from tldr-pages