Skip to content

Instantly share code, notes, and snippets.

@diegoarigony
Created July 31, 2015 14:41
  • Star 0 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 diegoarigony/a5d09c6ce6664dd0948a to your computer and use it in GitHub Desktop.
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