Menu

Skip to content
  • Home
  • Blog
  • Resume
    • LINKEDIN
    • – PDF
    • – DOCX
    • – TEXT
  • Contact me
  • Account
Twitter Email LinkedIn GitHub Bitbucket Stack Overflow

dmSherazi

Embedded Electronics HW/SW Engineer with expertise in Hardware & Software including PCB design and Analysis, firmware development and Android development apart from causual web-development (wordpress & Laravel) and to some extent photography.

Scroll Down

scipt

January 17, 2018 by Dost Muhammad Shah on Coding

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
 
 
Subscribe!