Created
March 18, 2015 05:04
-
-
Save CodeMan99/d8b69a355b7d916b234c to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/sh | |
git ls-files "*.mak" | sed 'p; s/mak$/mako/' | xargs -n2 git mv; | |
bad=$(git grep -l '\.mak\b') | |
echo $bad | xargs -n1 sed -i 's/\.mak\b/.mako/' | |
git add $bad | |
git commit -m "Change '.mak' extension to '.mako'." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment