projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
505aa03
)
-undo
author
Christian Grothoff
<christian@grothoff.org>
Sun, 27 May 2012 19:51:26 +0000
(19:51 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Sun, 27 May 2012 19:51:26 +0000
(19:51 +0000)
bin/rename.sh
patch
|
blob
|
history
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
-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"