/etc/detoxrc
The system-wide detoxrc file.
Clean up filenames (stream-based)
inline-detox [-f
configfile]
[-s
sequence]
[-v]
inline-detox [-f
configfile]
[-s
sequence]
[-v]
file ...
inline-detox [-L]
[-f
configfile]
[-v]
inline-detox [{-h | --help}]
inline-detox [-V]
The inline-detox utility generates new filenames to make them easier to work with under Linux and other Unix-like operating systems. It replaces characters that make it hard to type out a filename with dashes and underscores. It also provides transcoding-based filters, converting ISO-8859-1 or CP-1252 to UTF-8. An additional filter unescapes CGI-escaped filenames.
inline-detox reads filename(s) from the input stream and writes the updated filename(s) to the output stream.
If a filename is passed on the command line, inline-detox reads this file and processes each line before writing it to the output stream.
Running detox --inline is identical to running inline-detox.
inline-detox is driven by a configurable series of filters, called a sequence. Sequences are covered in more detail in detoxrc(5) and are discoverable with the -L option. The default sequence will run the safe and wipeup filters. Other examples of pre-configured sequences are iso8859_1 and iso8859_1-legacy, which both provide transcoding to UTF-8, and then finish with the safe and wipeup filters.
-f configfile
Use configfile instead of the default configuration files for loading translation sequences. No other config file will be parsed.
-h, --help
Display helpful information.
-L
List the currently available sequences. When paired with -v this option shows what filters are used in each sequence and any properties applied to the filters.
-s sequence
Use sequence instead of default.
-v
Be verbose about which files are being renamed.
-V
Show the current version of inline-detox.
/etc/detoxrc
The system-wide detoxrc file.
~/.detoxrc
A user's personal detoxrc. Normally it extends the system-wide detoxrc, unless -f has been specified, in which case, it is ignored.
/usr/share/detox/cp1252.tbl
The provided CP-1252 transcoding table.
/usr/share/detox/iso8859_1.tbl
The provided ISO-8859-1 transcoding table.
/usr/share/detox/safe.tbl
The provided safe character translation table.
/usr/share/detox/unicode.tbl
The provided Unicode control character filtering table, used by the UTF-8 filter.
inline-detox -s lower -vWill run the sequence lower, listing any changes and returning the result to the output stream.
9 releases since Debian 6.0 (Squeeze); the text changed 4 times.
--remove-trailing until Debian 12 (Bookworm);
-r until Debian 12 (Bookworm).