Search and replace in all the files inside a directory via command line

I've had the need to search for a bunch of strings and replace them with something else in over 500 files.. I did once.. now I need to do it again (...don't ask...), so here is the command that does it for future reference:
find ./ -type f -exec sed -i ’s/string1/string2/’ {} \;

Post new comment