batch conversion of files to lower case
Nikolas Britton
freebsd at nbritton.org
Fri Mar 25 01:07:23 PST 2005
Posting this here so I can find it next time I need. Converts files in a
directory to lower-case, change "*.TTF" to whatever you want to find /
change:
find ./ -name "*.TTF" -exec perl -e 'rename($_, lc) || warn "$_: $!\n"
for @ARGV' {} \;
Alternatively you can use "find ./ -type f" to change ALL files in the
current working directory.
Adapted from Robin's post on this page:
http://perlmonks.thepen.com/131861.html
More information about the freebsd-newbies
mailing list