egrep in /usr/sbin/ndisgen

Toomas Aas toomas.aas at raad.tartu.ee
Wed Dec 11 04:25:14 UTC 2013


Tue, 10 Dec 2013 kirjutas Alex Stangl <alex at stangl.us>:

>> I tried this on the latest INF file at hand, and indeed it returns zero:
>>
>> $ egrep -i -c "Signature|.S.i.g.n.a.t.u.r.e" netr28ux.inf
>>
>>
>> However:
>>
>> $ egrep -i -c ".S.i.g.n.a.t.u.r.e" netr28ux.inf
>> 1
>
> egrep returns 0 for successful match, not failure.
>

But egrep -c should return a count of matches found.

-- 
Toomas Aas



More information about the freebsd-questions mailing list