Referring to my last
blog entry, I'm proud to present an enhanced version of Larry
Wall's/Robin Baker's famous script (p)rename. The main difference
between the original and recrename lies within the fact, that the
latter recursively renames all files/folders in the directory tree,
when invoked with a directory name as argument.
So, here's an example how it works:
#"." represents the current directory...(more arguments are allowed) recrename -n 's#\s+#_#g ;y#A-Z#a-z#;s#[^a-z0-9_\-.]#_#g;s#_+#_#g' .If everything looks ok, you may omit the -n for the changes to take effect.