INLINE-DETOX(1)
π INLINE-DETOX(1) π
okay bestie, welcome to inline-detox β the stream-based glow-up for your filenames β¨ (it lives in the General Commands Manual section, if you're keeping track π)
β¨ SYNOPSIS β¨
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]
πΈ DESCRIPTION πΈ
okay so. The inline-detox utility literally just makes new filenames for you so that living under Linux and other Unix-like operating systems stops being a whole ordeal π«Ά. It takes the characters that make a filename a nightmare to type out and swaps them for dashes and underscores. Periodt.
It also serves up transcoding-based filters, converting ISO-8859-1 or CP-1252 to UTF-8 β yes, a whole character-set makeover π . And there's one more filter on the roster that unescapes CGI-escaped filenames, because of course there is.
Here's the flow, bestie: inline-detox reads filename(s) from the input stream and writes the updated filename(s) to the output stream. That's it. That's the whole vibe.
And if a filename gets passed on the command line? Then inline-detox reads this file and processes each line before writing it to the output stream. Easy.
π‘ fun fact: runningdetox --inlineis identical to runninginline-detox. same girl, different name tag.
π§ Sequences π§
inline-detox is driven by a configurable series of filters, and that series is called a sequence. Iconic naming, honestly. Sequences are covered in more detail in detoxrc(5) and you can discover them 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. π
π Options π
-fconfigfile β use configfile instead of the default configuration files for loading translation sequences. Heads up though: no other config file will be parsed. not one. she's exclusive.-h,--helpβ display helpful information. we love a helpful queen π-Lβ list the currently available sequences. When paired with-vthis option shows what filters are used in each sequence and any properties applied to the filters. the receipts!! π§Ύ-ssequence β use sequence instead of default.-vβ be verbose about which files are being renamed.-Vβ show the current version ofinline-detox.
π FILES π
/etc/detoxrcβ the system-widedetoxrcfile.~/.detoxrcβ a user's personaldetoxrc. Normally it extends the system-widedetoxrc, unless-fhas been specified, in which case, it is ignored. π (sorry girl, rules are rules)/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.
π EXAMPLES π
echo Foo Bar | inline-detox -s lower -vβ will run the sequencelower, listing any changes and returning the result to the output stream.
likeβ¦ look at her go π
π₯ SEE ALSO π₯
detox(1), detox.tbl(5), detoxrc(5), ascii(7), iso_8859-1(7), unicode(7), utf-8(7)
π HISTORY π
inline-detox was originally designed to clean up files that I had received from friends which had been created using other operating systems. It's trivial to create a filename with spaces, parenthesis, brackets, and ampersands under some operating systems. These have special meaning within FreeBSD and Linux, and cause problems when you go to access them. I created inline-detox to clean up these files.
Version 2.0 stepped back from transliteration out of the box, instead focusing on ease of use. Version 3.0 further shifted this, by removing most of the transliteration from the tables. The primary motivations for this were user-provided feedback, and the fact that many modern Unix-like OSs use UTF-8 as their primary character set. Transliterating from UTF-8 to ASCII in this scenario is lossy and pointless. π (fr fr, no cap)
π«Ά AUTHORS π«Ά
inline-detox was written by Doug Harple. king behavior, honestly π
and that's the whole page, bestie β brought to you by the Debian crew, dated March 31, 2024. go forth and rename things with main character energy π¦β¨
π¦ where this page comes from
- arch rolling: detox 3.0.1-1 Β· BSD-3-Clause
- fedora 43: detox 3.0.1-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: detox 3.0.1-3.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: detox 3.0.1
- nixpkgs unstable: detox 3.0.1
- ubuntu stonking: detox 3.0.1-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms