I want to recursively search through a directory of text files and replace every occurrence of foo
within the files with bar
. What is the easiest way to accomplish this?
I imagine that grep would do the job in one line, but I can't seem to find an example of this.
I'm working in OS X.