[geeks] Re: [SunRescue] filenames..
Wolfgang Engelien
geeks at sunhelp.org
Thu May 24 10:21:41 CDT 2001
At 10:05 AM 5/24/01 -0500, you wrote:
>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?
>
>for i in `find thedir/ -type f -print`; do
> mv $i `echo $i | perl -e '$thing = <STDIN>;print lc($thing);'`
>done
Hm, seems to me that this works only if the directory names are
all in lower case already?? Or am i wrong??
Wolfgang
More information about the geeks
mailing list