summaryrefslogtreecommitdiffstats
path: root/find-replace.sh
blob: 522affab9825ab8445e35fddb9e1cd5748b430b9 (plain)
1
2
3
4
5
# Recursive find/replace.
# Syntax: ./find-replace.sh searchtext replacetext

egrep -lRZ '$1' . | xargs -0 -l sed -i -e 's/$1/$2/g'