Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] sed quiz


on Mon, Nov 26, 2001 at 12:53:07PM +1100, Jonathan Kelly <jon@xxxxxxxxxx> wrote:
> Hi all you sed-heads,
> 
> I was sure it was possible to get sed to match a line
> containing a re "and the next n lines" by doing something
> like
> 
> /find text/,+3s/old text/new string/

The seder's grab-bag may help
http://spazioweb.inwind.it/seders/

BB