HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

detox — Renames files to make them easier to work with. It removes spaces and other such annoyances like dup

Submitted by: @import:tldr-pages··
0
Viewed 0 times
renamescommanddetoxfilesclithemeasiermake

Problem

How to use the detox command: Renames files to make them easier to work with. It removes spaces and other such annoyances like duplicate underline characters. More information: <https://manned.org/detox>.

Solution

detox — Renames files to make them easier to work with. It removes spaces and other such annoyances like duplicate underline characters. More information: <https://manned.org/detox>.

Remove spaces and other undesirable characters from a file's name:
detox {{path/to/file}}


Show how detox would rename all the files in a directory tree:
detox {{[-n|--dry-run]}} -r {{path/to/directory}}


Remove spaces and other undesirable characters from all files in a directory tree:
detox -r {{path/to/directory}}

Code Snippets

Remove spaces and other undesirable characters from a file's name

detox {{path/to/file}}

Show how detox would rename all the files in a directory tree

detox {{[-n|--dry-run]}} -r {{path/to/directory}}

Remove spaces and other undesirable characters from all files in a directory tree

detox -r {{path/to/directory}}

Context

tldr-pages: common/detox

Revisions (0)

No revisions yet.