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