[geeks] Re: [SunRescue] filenames..

Wolfgang Engelien geeks at sunhelp.org
Thu May 24 10:25:27 CDT 2001


At 11:19 AM 5/24/01 -0400, you wrote:
>[ On Thursday, May 24, 2001 at 09:56:49 (-0500), Bill Bradford wrote: ]
>> Subject: [SunRescue] filenames..
>>
>> Anybody got a script/program that will traverse a directory tree and
>> change all filenames to lowercase?
>
>You mean like this simple command-line?  :-)
>
>  find . -print | while read name ; do mv $name `echo $name | tr '[A-Z]'
'[a-z'`; done
>
>(use "mv -i" if you think there may be any name clashing)
Again, I think this works also only if the directory names are already
all lowercase !??
Wolfgang



More information about the geeks mailing list