Created
September 25, 2019 13:33
-
-
Save jglathe/0f8586f9dff6b00820e028a10d75cba5 to your computer and use it in GitHub Desktop.
git: rename all files to lowercase in a directory tree
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
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