Subject: Re: A grep question
To: None <netbsd-help@netbsd.org>
From: Georges Heinesch <geohei-ml@geohei.lu>
List: netbsd-help
Date: 06/08/2001 23:58:51
Quoting Jon Lindgren (08-Jun-01 16: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 :-) ]

Yes, you are right ;)

I was searching for "exclude" or "excluding" in the man pages. I spent
quite some time though ...

Thanks!

-- 
Cu  Georges Heinesch, Luxembourg
    geohei@geohei.lu
    http://www.geohei.lu
    PGP RSA & DH/DSS public key on request and on public servers

... like a virgin ...