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  How to Turn a Raspberry Pi into NVR or DVR With Motion

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.