Skip to content

Instantly share code, notes, and snippets.

@josephmilla
Created September 20, 2015 18:51
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