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

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.