one line search and replace in a folder [OSX]

Beautiful tip to search and replace all occurrences of a string in a given folder. 

I had to change it slightly to make it work under OSX so here it is for future reference:

  find . -type f -exec sed -i -e ‘s/Old/New/g’ {} \;

Comments are closed.