PTX(1) General Commands Manual PTX(1)

# [NAME](#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 /'.

# [SYNOPSIS](#SYNOPSIS)

**ptx** \[OPTION]... \[INPUT]...  
**ptx** -G \[OPTION]... \[INPUT \[OUTPUT]]

# [DESCRIPTION](#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 /'.

# [OPTIONS](#OPTIONS)

[**-A**, **--auto-reference**](#A)

output automatically generated references

[**-G**, **--traditional**](#G)

behave more like System V 'ptx'

[**-F**, **--flag-truncation** *&lt;STRING&gt;*](#F)

use STRING for flagging line truncations

[**-M**, **--macro-name** *&lt;STRING&gt;*](#M)

macro name to use instead of 'xx'

[**-O**](#O)

generate output as roff directives

[**-T**](#T)

generate output as TeX directives

[**-R**, **--right-side-refs**](#R)

put references at right, not counted in -w

[**-S**, **--sentence-regexp** *&lt;REGEXP&gt;*](#S)

for end of lines or end of sentences

[**-W**, **--word-regexp** *&lt;REGEXP&gt;*](#W)

use REGEXP to match each keyword

[**-b**, **--break-file** *&lt;FILE&gt;*](#b)

word break characters in this FILE

[**-f**, **--ignore-case**](#f)

fold lower case to upper case for sorting

[**-g**, **--gap-size** *&lt;NUMBER&gt;*](#g)

gap size in columns between output fields

[**-i**, **--ignore-file** *&lt;FILE&gt;*](#i)

read ignore word list from FILE

[**-o**, **--only-file** *&lt;FILE&gt;*](#o)

read only word list from this FILE

[**-r**, **--references**](#r)

first field of each line is a reference

[**-t**, **--typeset-mode**](#t)

change the default width from 72 to 100

[**-w**, **--width** *&lt;NUMBER&gt;*](#w)

output width in columns, reference excluded

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-09-17

---

Document: ptx(1) from uutils 0.12.0-r0 (Chainguard OS)
Source: https://github.com/uutils/coreutils
