Last Updated: February 25, 2016
·
634
· javierg

Replace Factory for FactoryGirl with sed+ack

I have used this so many times upgrading FactoryGirl:

ack Factory test/ -l --print0 | xargs -0 -n 1 sed -i -e 's/Factory/FactoryGirl/g'