projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
psycstore api docs
[oweals/gnunet.git]
/
bin
/
rename.sh
diff --git
a/bin/rename.sh
b/bin/rename.sh
index 178b44081fd5f5e6c74e83c4e94dae648729c800..7d5790b41986ae43eefcc8d25ceb604f4a448b79 100755
(executable)
--- a/
bin/rename.sh
+++ b/
bin/rename.sh
@@
-1,5
+1,5
@@
#!/bin/sh
#!/bin/sh
-for n in `find * -name "*.c"` `find * -name "*.h"`
`find * -name "*.in"`
+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"
do
cat $n | sed -e "s/$1/$2/g" > $n.new
mv $n.new $n || echo "Move failed: $n.new to $n"