by dfc · 14y ago · 0 comments
Taking care of a directory full of madness is as easy as `rename -z`:
-z, --sanitize
Replaces consecutive blanks, shell meta characters, and control characters
in filenames with underscores.
[1] http://plasmasturm.org/code/renameYou just like to live on the edge, don't you?
$ rm foo.{bar,bar.bak}
vs.
$ rnm foo.{bar,bar.bak} $ rm -z *
rm: invalid option -- 'z'
Try `rm --help' for more information.