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