Categorized | programming and tip

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’ {} \;

This post was written by:

- who has written 19 posts on be present now.


Contact the author

Comments are closed.

Twitter