batch conversion of files to lower case

Nikolas Britton <[email protected]> Fri, 25 Mar 2005 03:07:21 -0600
Newsgroups gmane.os.freebsd.newbies
Message-ID <[email protected]>
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
To unsubscribe, send any mail to "[email protected]"