From owner-freebsd-questions@FreeBSD.ORG Thu Jan 6 04:43:54 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F2D416A4CE for ; Thu, 6 Jan 2005 04:43:54 +0000 (GMT) Received: from rooster.chubbo.net (rooster.chubbo.net [168.75.98.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB94043D54 for ; Thu, 6 Jan 2005 04:43:53 +0000 (GMT) (envelope-from freebsd-questions@chubbo.net) Received: from rooster.chubbo.net (localhost [127.0.0.1]) by rooster.chubbo.net (8.12.9/8.12.3) with ESMTP id j064hpR5046931 for ; Wed, 5 Jan 2005 20:43:51 -0800 (PST) (envelope-from freebsd-questions@chubbo.net) Received: (from nobody@localhost) by rooster.chubbo.net (8.12.9/8.12.9/Submit) id j064hpS2046930 for freebsd-questions@freebsd.org; Wed, 5 Jan 2005 20:43:51 -0800 (PST) (envelope-from freebsd-questions@chubbo.net) X-Authentication-Warning: rooster.chubbo.net: nobody set sender to freebsd-questions@chubbo.net using -f Received: from c-67-169-93-71.client.comcast.net (c-67-169-93-71.client.comcast.net [67.169.93.71]) by mail.chubbo.net (IMP) with HTTP for ; Wed, 5 Jan 2005 20:43:50 -0800 Message-ID: <1104986630.41dcc206e3e4f@mail.chubbo.net> Date: Wed, 5 Jan 2005 20:43:50 -0800 From: joseph kacmarcik To: freebsd-questions@freebsd.org References: <41DCBE47.4070402@att.net> In-Reply-To: <41DCBE47.4070402@att.net> MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Subject: Re: grep help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2005 04:43:54 -0000 > grep ^[^1.2.3.4]*$ logfile.log to not match, use: grep -v 1.2.3.4 logfile.log -v, --invert-match Invert the sense of matching, to select non-matching lines. when there are multiple patterns you don't want to see, try: egrep -v '1.2.3.4|5.6.7.8' logfile.log joe