Created
June 19, 2018 16:42
-
-
Save watershed/53da922f2ca8a8b604381ff862526025 to your computer and use it in GitHub Desktop.
Rename files in folder to all lowercase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *; do mv "$f" "$f.tmp"; mv "$f.tmp" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: https://stackoverflow.com/a/7787159/639538.
With Mac OS insight from John Whitley: https://stackoverflow.com/questions/7787029/how-do-i-rename-all-files-to-lowercase#comment46286937_7787159.