summaryrefslogtreecommitdiff
path: root/replace.sh
diff options
context:
space:
mode:
Diffstat (limited to 'replace.sh')
-rw-r--r--replace.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/replace.sh b/replace.sh
index bc9e2296..7648423a 100644
--- a/replace.sh
+++ b/replace.sh
@@ -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