Over the years, I’ve written a number of “search and replace in multiple files” scripts. Working on a computer that didn’t have my standard, custom toolset available, I found myself searching for an alternative.

Found this tip over at Dzone Snippets – do it all with a single line of perl.

perl -pi -w -e ’s/search/replace/g;’ *.txt

Of course, you’ll need Perl installed on your system and command line access to make use of it.