I've been struggling with this, too, and finally found something that works on Mac OS: perl -pi -w -e 's/THIS/THAT/g;' /path/to/files*.txt Referenced from [this page](http://osxdaily.com/2013/08/20/find-replace-text-in-multiple-documents-from-the-command-line/). Opened Terminal, cd'd to the director...