[plug] grep regex on command line with pipe?

Lucas van Staden lvs at dedmeet.com
Thu Sep 10 15:43:27 WST 2009


AH,

Thank you

grep -E -v --regex="foo|bar" file

will thus also work.

Should have seen that one in the man, helps to read, and not skim 
through it once in a while.

-Lucas

Carl Gherardi wrote:
> On Thu, Sep 10, 2009 at 3:37 PM, Carl Gherardi<carl.gherardi at gmail.com> wrote:
>   
>>> I was just wondering if that could be done using only one grep with regex
>>>
>>> grep -v --regex=foo|bar settings.json
>>>
>>> , but the pipe is handled as a file pipe...
>>>       
>> grep -v --regex="foo|bar" file
>>     
>
> Oops - egrep not grep.
>
> Carl G
>   




More information about the plug mailing list