Convert spaces to underscores, trims punctuation parentheses etc and leading/ending whitespaces.
For GUI, it uses zenity
.
- Use as
env NO_GUI=sth sanitize-filename [...]
to disable GUI. - Use as
env verbose=true sanitize-filename [...]
to enable verbose debugging messages. - Use as
env dry_run=true sanitize-filename [...]
to not actually perform any filesystem operations.
End result: