Skip to content

Shells suck. This is a script to rename files to use characters that do not need escaping in shells.

License

Notifications You must be signed in to change notification settings

epilys/sanitize-filename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

sanitize-filename terminal utility in bash

No Maintenance Intended

Default view

`NO_COLOR` support

Success notification allows for undo.

Convert spaces to underscores, trims punctuation parentheses etc and leading/ending whitespaces.

For GUI, it uses zenity.

Use

  • 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.

Add to Thunar's context menu as an action

End result:

Custom action in thunar's context menu when you right click a file.

  1. Open the custom actions menu.
  2. Create a new action and set these values.

About

Shells suck. This is a script to rename files to use characters that do not need escaping in shells.

Topics

Resources

License

Stars

Watchers

Forks

Languages