Created
August 25, 2016 00:04
-
-
Save drewlustro/19ac34ac1ae97d415ed67a1a7f343b59 to your computer and use it in GitHub Desktop.
Batch change filename/extension to 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
# http://stackoverflow.com/questions/7787029/how-do-i-rename-all-files-to-lowercase | |
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