Re: [ILUG] Filtering a file.

From: David Neary (dneary at domain wanadoo.fr)
Date: Wed 10 Jul 2002 - 17:34:27 IST


Aherne Peter-pahern02 wrote:
> What I want to do is get any line starting with /XXX/ CE and remove
> that line and the following one. I could just write a script for this
> but I though one of you guys could come up with something a little
> more elegant.

OK - this may not work, but the idea is sound enough.

sed '/^\/XXX\/ CE/{d;d}' filename

Dave.

-- 
       David Neary,
    Marseille, France
  E-Mail: bolsh at domain gimp.org


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:48 GMT