Name
ptx
Synopsis
ptx [options
] [infiles
] ptx -G [options
] [infile
[outfile
]]
Create a permuted index, including context, from the contents
of the specified input files. If the input files are omitted, or are
-
, read from standard input. The
results are written to standard output. In the second form, with the
-G option, ptx behaves like the System V version
rather than the GNU version; you specify only one input file, and
you can also specify an output file. Because they show words in
context, permuted indexes are often used in such places as
bibliographic or medical databases, thesauruses, or websites to aid
in locating entries of interest.
Options
- -A, --auto-reference
Produce automatically generated references, consisting of the filename and line number, separated by a colon, and print them at the beginning of each line.
- -b file, --break-file=file
The specified file contains word-break characters--characters that are not part of words, but separate them.
- -f, --ignore-case
Ignore case when sorting, by folding lowercase into uppercase.
- -F string, --flag-truncation=string
Use string to flag line truncations.
- -g num, --gap-size=num
Specify the number of spaces between output columns.
- -G, --traditional
Behave like System V ptx; don’t use the GNU extensions. If an output file is specified, any existing contents are lost.
- --help
Display a help message and exit.
- -i file, --ignore-file=file
Read the list of words that are not to be used as keywords in the concordance output from file.
- -M string, --macro-name ...
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.