Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] search and replace multiple files?

* Nick Andrew <nick@xxxxxxxxxxxxxxx> [2011-08-02 12:23:43 +1000]:
> On Tue, Aug 02, 2011 at 10:29:44AM +1000, Sonia Hamilton wrote:
> > For example, I want to replace "def fubar" with "def snafu" across 50
> > files.
> perl -p -i -e 's/def fubar/def snafu/g' *

I said: "PS I know about sed, and how to edit multiple files in vim
[1]." Supplying a perl recipe therefore isn't very useful. Perhaps I
should've said "ditto for ruby, perl, python, ...".

> If you are not using SCM (or git in particular), then you should be.


Again, not the question I was asking...

Sonia Hamilton