linux - How to search and replace using grep
I need to recursively search for a specified string within all files and subdirectories within a directory and replace this string with another string.

Another option is to use find and then pass it through sed.
find /path/to/files -type f -exec sed -i 's/oldstring/new string/g' {} \;

