[geeks] Re: [SunRescue] filenames..

Paul Sladen geeks at sunhelp.org
Thu May 24 10:23:25 CDT 2001


On Thu, 24 May 2001, Bill Bradford wrote:

> Anybody got a script/program that will traverse a directory tree and
> change all filenames to lowercase?

find ./ -type f -exec perl -e '$to=$from=$ARGV[0]; $to =~ tr/A-Z/a-z/; `mv "$from" "$to"`' {} \;

E&EO -- and I recommend adding a "2> /dev/null" at the end ;-)
HIH, Paul
--
h: 0115 922 7162   w: 0115 953 1803




More information about the geeks mailing list