- To: Jonathan Kelly <jon@xxxxxxxxxx>
- Subject: Re: [SLUG] sed quiz
- From: "Broun, Bevan" <brounb@xxxxxxxxxxxxxxx>
- Date: Mon Nov 26 13:09:01 2001
- Cc: slug@xxxxxxxxxxx
- Reply-to: brounb@xxxxxxxxxxxxxxx
- User-agent: Mutt/1.2.5i
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