summaryrefslogtreecommitdiff
path: root/bin/rename.sh
blob: 178b44081fd5f5e6c74e83c4e94dae648729c800 (plain)
1
2
3
4
5
6
#!/bin/sh
for n in `find * -name "*.c"` `find * -name "*.h"` `find * -name "*.in"`
do
 cat $n | sed -e "s/$1/$2/g" > $n.new
 mv $n.new $n || echo "Move failed: $n.new to $n"
done