Script to rename all files replacing uppercase with lowercase letters

At times we have files that might contain Uppercase letters that need to be renamed to lowercase. The following script can help in this case. 

Lowercase Script


for /F %a in ('dir /L /B') do ren %a %a


for f in *; do mv "$f" "$f.tmp"; mv "$f.tmp" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done
RECOMMENDED READ  Analog pH Meter with PIC16F684 and arduino

Dost Muhammad Shah

Dost Muhammad specializing in Embedded Design, Firmware development, PCB designing , testing and prototyping. He enjoys sharing his experience with others .Get in touch with Dost on Twitter or via Contact form


Leave a Reply