Subject: Re: A grep question
To: Georges Heinesch <geohei-ml@geohei.lu>
From: Jon Lindgren <jlindgren@slk.com>
List: netbsd-help
Date: 06/08/2001 11:21:46
On 8 Jun 2001, Georges Heinesch wrote:

> Hi.
> 
> Possibly off-topic, but someone here should know the answer.
> 
> Which grep (or egrep, fgrep) options do I have to use to extract all
> lines from a file except a lines containing a given string.
> 
>     # grep "list all lines except" 'foobar'

From 'man grep':

-v, --invert-match
	Invert the sense of matching, to select non-matching lines.

[a polite reminder to RTFM :-) ]

-
Jon
 --------------------------------------------------------------------
 "'The chicken,' it's been said, 'is just an eggs way of making more
  eggs.'" -- Alton Brown