~pixelherodev/c3lib

ref: tmp c3lib/refactor.sh -rwxr-xr-x 256 bytes
ddd78966Noam Preil tmp 3 months ago
                                                                                
1
2
3
4
5
6
7
8
#!/bin/zsh
from=$1
to=$2
find -name '*.h' -exec echo sed {} -i -e "s/$from/$to/g" \;
find -name '*.h' -exec sed {} -i -e "s/$from/$to/g" \;
find -name '*.c' -exec echo sed {} -i -e "s/$from/$to/g" \;
find -name '*.c' -exec sed {} -i -e "s/$from/$to/g" \;