Created
September 20, 2015 18:51
-
-
Save josephmilla/44e44f73d43f9723caae to your computer and use it in GitHub Desktop.
Convert all file extensions to lower-case
This file contains hidden or 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
find . -name '*.*' -exec sh -c ' | |
a=$(echo "$0" | sed -r "s/([^.]*)\$/\L\1/"); | |
[ "$a" != "$0" ] && mv "$0" "$a" ' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment