Command line tool to rename files with spaces replacing them with '_'; individually, searching by pattern or an entire folder.
space_rename [OPTION] [INPUT]*
Note: the '*' symbol mean as many inputs you want.
Shows help.
space_rename -h
Rename recursively in the specified directories.
space_rename -r [INPUT]*
space_rename "file with spaces"
# ./file with spaces -> file_with_spaces
space_rename dir_without_spaces
Rename its files.
space_rename "dir with spaces"
Warning: Rename the Directory itself and its files.
space_rename "~/Dowloads/foo **"
space_rename -r ~/Downloads "dir\ with\ spaces/foo\ **" "file\ with\ spaces"
Warning: Rename recursively in '~/Downloads' and in 'dir with spaces' also.