Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
git: rename all files to lowercase in a directory tree
for k in $(ls); do cd $k && for i in $( ls | grep [A-Z] ); do git mv -f $i `echo $i | tr 'A-Z' 'a-z'`; done && cd ..;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment