From: Stephen_Reilly at domain dell.com
Date: Wed 10 Jul 2002 - 16:51:56 IST
sed "/^\/XXX\/ CE/,/$/d" filename
> -----Original Message-----
> From: Gavin McCullagh [mailto:ilug_gmc at domain fiachra.ucd.ie]
> Sent: 10 July 2002 16:39
> To: ilug at domain linux.ie
> Subject: Re: [ILUG] Filtering a file.
> argh. Got round to testing that. I thought -A 1 would invert
> it's sense
> (ie ignore trailing lines) but it doesn't.
> On Wed, 10 Jul 2002, Gavin McCullagh wrote:
> > untested but should be close if no cigar. Corrections
> welcome as always.
> > grep -v -A 1 --regexp='^\/XXX\/'
> Irish Linux Users' Group: ilug at domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for
> (un)subscription information.
> List maintainer: listmaster at domain linux.ie
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:48 GMT