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

Re: Filename case



> ls | awk '{ system("mv " $0 " " tolower($0)) }'

Not being familiar with awk, I can only guess that the above code transforms 
all filenames to lowercase.

An easier way, using just the shell, would be:

for ASDF in *; do mv $ASDF `echo $ASDF | tr A-Z a-z`; done

-- 
John Goerzen          | System administrator & owner, The Communications
Custom programming    | Centre and Complete Network (complete.org)
jgoerzen@complete.org | Free Unix shell access, 316-367-8490 w/ your modem.



Reply to: