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’ {} \;
Posted on 01 October 2008.
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’ {} \;
