Convert All File Names To Lowercase (Shell, Mac, Linux)

By April 24, 2016March 20th, 2017Blog, Shell/Terminal
Allure Web Solutions Code Snippet

cd into the directory where the files you are working with are located and ls to confirm you are in the right directory. Then run the below command to convert all file names to all lowercase:


for f in *; do mv "$f" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done
Mike Doubintchik

Author Mike Doubintchik

More posts by Mike Doubintchik

Leave a Reply