TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [TCLUG:18058] stripping caps





> -----Original Message-----
> From: Phil Plumbo [mailto:psp@printwareinc.com]
> Sent: Tuesday, May 23, 2000 11:40 AM
> To: tclug-list@mn-linux.org
> Subject: [TCLUG:18058] stripping caps
>
>
> I've got a lot of files whose names are MiXed CaSE, and I need to change
> them all to lower case.
> Is there a quick way to do this?
>
> Thanks

here's some terse perl...

perl -e 'opendir D, "."; @f = readdir D; for (@f) {$old = $_; tr/A-Z/a-z/;
rename ($old,$_)}'



--
Eric Hillman
UNIX Sysadmin/Webmaster
City & County Credit Union
ehillman@cccu.com