summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/move.sh3
-rwxr-xr-xscripts/rename.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/move.sh b/scripts/move.sh
new file mode 100755
index 0000000..568535d
--- /dev/null
+++ b/scripts/move.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+find ./src -type f -exec sed -i 's/\['"$1"'](.*)/['"$1"']('"$2"')/g' {} \;
diff --git a/scripts/rename.sh b/scripts/rename.sh
new file mode 100755
index 0000000..4b2efc0
--- /dev/null
+++ b/scripts/rename.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+find ./src -type f -exec sed -i 's/\[.*]('"$2"')/['"$1"']('"$2"')/g' {} \;