[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Filename case



>>>>> "JR" == John Roesch <jroesch@sensormatic-vpd.com> writes:
    JR> I'm using Debian .96 and have a need to change all the files in a   
    JR> directory from uppercase to lowercase (ftp'ed from DOS).  Is there a   
    JR> quick method or command to do this?

If you installed Perl:

perl -e 'for $file (<*>) { rename($file, lc($file)) or warn "$file: $!" }'

(Mind the single and double quotes.)  Run this in the directory you want
converted.

-Tom



Reply to: