Blog

Posted 2005/10/23

Updating Tycho code to reflect the name change

Saved by the shell. To go from uk.ac.port.dsg.jGMA to uk.ac.port.dsg.tycho, and rename some functions to make more sense I used a bit of BASH and sed…

for f in $(find -name *.java); do
  cp $f $f.bak;
  sed -e 's/foo/bar/' < $f.bak >$f;
done

I’m sure you can use Eclipse to do this, but this command has saved me time for years (and you can use it anywhere). Thus ends the great jGMA rebranding of 2005.