Skip to content

Instantly share code, notes, and snippets.

@josephmilla
Created September 20, 2015 18:51
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save josephmilla/44e44f73d43f9723caae to your computer and use it in GitHub Desktop.
Convert all file extensions to lower-case
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