Bulk and Recursive Text Replacements
by wagscat123 from LinuxQuestions.org on (#5FGRY)
Hi all,
I see some sed and wildcard tricks here, but am looking for a way to search every single non-binary file under a directory tree and replace every occurrence of a particular string of text with another (like changing all occurrences of "yellow_dog" to "black_cat" in every text file in a directory and all its sub directories).
Any ideas?


I see some sed and wildcard tricks here, but am looking for a way to search every single non-binary file under a directory tree and replace every occurrence of a particular string of text with another (like changing all occurrences of "yellow_dog" to "black_cat" in every text file in a directory and all its sub directories).
Any ideas?