2
0

rename.sh 270 B

1234567
  1. #!/bin/sh
  2. # This script is in the public domain.
  3. for n in `find * -name "*.c"` `find * -name "*.h"` `find * -name "*.am"` `find * -name "*.conf"` `find * -name "*.conf.in"`
  4. do
  5. cat $n | sed -e "s/$1/$2/g" > $n.new
  6. mv $n.new $n || echo "Move failed: $n.new to $n"
  7. done