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

Windows

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

Mac/Linux

for f in *; do mv "$f" "$f.tmp"; mv "$f.tmp" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done
RECOMMENDED READ  Android: Call to getLayoutInflater() outside activity
 

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