From owner-freebsd-stable@FreeBSD.ORG Thu Oct 20 20:56:57 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 074FE16A41F for ; Thu, 20 Oct 2005 20:56:57 +0000 (GMT) (envelope-from parv@pair.com) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 926BB43D64 for ; Thu, 20 Oct 2005 20:56:56 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([69.160.76.67]) by mta9.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051020205655.KKXC20109.mta9.adelphia.net@default.chvlva.adelphia.net>; Thu, 20 Oct 2005 16:56:55 -0400 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id CCC53B59E; Thu, 20 Oct 2005 16:57:04 -0400 (EDT) Date: Thu, 20 Oct 2005 16:57:04 -0400 From: Parv To: James Long Message-ID: <20051020205704.GC4000@holestein.holy.cow> Mail-Followup-To: James Long , freebsd-stable@freebsd.org References: <20051020194725.GA10376@ns.museum.rain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051020194725.GA10376@ns.museum.rain.com> Cc: freebsd-stable@freebsd.org Subject: Re: bzegrep behaviour not consistent with egrep? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: f-q List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 20:56:57 -0000 in message <20051020194725.GA10376@ns.museum.rain.com>, wrote James Long thusly... > > Should these two commands produce identical output? > > $ bzegrep "38436|41640" /var/log/maillog.0.bz2 | wc -l > 0 > $ bzcat /var/log/maillog.0.bz2 | egrep "38436|41640" | wc -l > 121 And more fun, try also "egrep -J| wc", which is similar to the 2d case above. Seems like the first "e" in "bzegrep" is erroneous. - Parv --