[plug] Perl script ?

Cameron Patrick cameron at patrick.wattle.id.au
Mon Oct 31 12:13:45 WST 2005


garry wrote:

> I wondering if Perl can do this....
> 
> With a music folder full of upper and lower case directory names, the 
> "alphabeticalness" get mucked up..
> 
> I'd like to be able to change all directory names to lower case..

You can do it easily enough with Awk.

  ls | awk '{ printf "mv \"%s\" \"%s\"\n", $REC, tolower($REC); }' | sh

(Slightly untested, use it on your own data at your own risk ;-)

Cameron



More information about the plug mailing list