diff options
Diffstat (limited to 'replace.sh')
-rw-r--r-- | replace.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,3 +1,3 @@ -sed -i 's/\<foo\>/bar/' $(git grep -l foo) -# foo: phrase to find -# bar: phrase to replace foo
\ No newline at end of file +sed -i 's/\<'$1'\>/'$2'/' $(git grep -l $1) +# $1: phrase to find +# $2: phrase to replace $1
\ No newline at end of file |