R.G. Mayhue wrote:
> On Tuesday 01 October 2002 11:05 pm, you wrote:
>
>
>>>Hey all...
>>>
>>>I've got a question about grep: how do you use it in an inverse
>>>sense?
>>
>>Use the -v switch...
>>
>>
>>>if I'm looking at dmesg output, I see a lot of "DENY" type
>>>messages. I want to filter those out, and see what's left. Can I
>>>use grep to do that?
>>
>>Yup.
>>
>> $ dmesg | grep -v DENY | more
>>
>
>
> Or this:
>
> $ dmesg | sed s/DENY//
>
No, that will just strip the word DENY (first instance on each line)
from the output. It will not filter-out the LINES which contain the
word DENY.
--ronan
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:31:27 EDT