Date: Wed, 11 Dec 2013 06:25:07 +0200 From: Toomas Aas <toomas.aas@raad.tartu.ee> To: Alex Stangl <alex@stangl.us> Cc: questions@freebsd.org Subject: Re: egrep in /usr/sbin/ndisgen Message-ID: <20131211062507.15433n7hu7gpwu2o@webmail.raad.tartu.ee> In-Reply-To: <20131210211919.GA77534@scout.stangl.us> References: <20131210224212.11531v3ymtj51n7o@webmail.raad.tartu.ee> <20131210211919.GA77534@scout.stangl.us>
next in thread | previous in thread | raw e-mail | index | archive | help
Tue, 10 Dec 2013 kirjutas Alex Stangl <alex@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131211062507.15433n7hu7gpwu2o>