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..fe0e1ffb
--- /dev/null
+++ b/replace.sh
@@ -0,0 +1,3 @@
+sed -i 's/\<'$1'\>/'$2'/' $(grep -lwr --include "*.asm" --exclude-dir=".git" --exclude-dir="extras" --exclude-dir="pic" --exclude-dir="gfx" $1)
+# $1: phrase to find
+# $2: phrase to replace $1 \ No newline at end of file