[geeks] Re: [SunRescue] filenames..

Dan Debertin geeks at sunhelp.org
Thu May 24 10:05:56 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?

for i in `find thedir/ -type f -print`; do
	mv $i `echo $i | perl -e '$thing = <STDIN>;print lc($thing);'`
done


--
Dan Debertin
airboss at nodewarrior.org
www.nodewarrior.org





More information about the geeks mailing list