7 echo "usage: $0 old_name new_name"
11 #echo "Replace $1 with $2?"
13 grep -rl "$1" text
/**/*.
{c
,h
} assets
/**/*.c enhancements
/*.
patch lib
/**/*.
{c
,h
,s
} asm
/**/*.s bin
/**/*.c data
/*.c levels
/**/*.c actors
/**/*.c src
/**/*.
{c
,h
} include
/**/*.
{h
,in} undefined_syms.txt |
xargs sed -i "s/\b$1\b/$2/g"