summaryrefslogtreecommitdiff
path: root/bin/rename.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rename.sh')
-rwxr-xr-xbin/rename.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/rename.sh b/bin/rename.sh
new file mode 100755
index 000000000..7d5790b41
--- /dev/null
+++ b/bin/rename.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+for n in `find * -name "*.c"` `find * -name "*.h"`
+do
+ cat $n | sed -e "s/$1/$2/g" > $n.new
+ mv $n.new $n || echo "Move failed: $n.new to $n"
+done