Created
July 30, 2017 16:08
-
-
Save camthesaxman/b83f1eabe3dac6cbce9132b1fa9cfecc 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/bash | |
if [ "$#" -ne "2" ]; | |
then | |
echo "usage: $0 old_name new_name" | |
exit 1 | |
fi | |
grep -rl "$1" asm/*.s src/*.c include/*.h sym_*.txt data/*.s data/*.inc | xargs sed -i "s/\b$1\b/$2/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment