I really like Facebook's codemod.py for stuff like that: https://github.com/facebook/codemod
It has something like automatic and manual modes, so you can check (and fix) every diff during the replacement
It has something like automatic and manual modes, so you can check (and fix) every diff during the replacement
Also it was written when I had HDD (not SSD) and codebase was on an encrypted image. It made enormous difference to me.
Its a little bit different from Go Replace, giving the option to drop on your editor if the current replacement can't be appied directly (this is the great feature).