From owner-freebsd-questions@FreeBSD.ORG Thu Jan 6 04:28:09 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 8EBEB16A4CE for ; Thu, 6 Jan 2005 04:28:09 +0000 (GMT) Received: from mtiwmhc13.worldnet.att.net (mtiwmhc13.worldnet.att.net [204.127.131.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C9C843D46 for ; Thu, 6 Jan 2005 04:27:58 +0000 (GMT) (envelope-from jayobrien@worldnet.att.net) Received: from [192.168.1.6] (dsl093-180-184.sac1.dsl.speakeasy.net[66.93.180.184]) by worldnet.att.net (mtiwmhc13) with ESMTP id <20050106042752113005pka7e> (Authid: jayobrien@att.net); Thu, 6 Jan 2005 04:27:52 +0000 Message-ID: <41DCBE47.4070402@att.net> Date: Wed, 05 Jan 2005 20:27:51 -0800 From: Jay O'Brien User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD - questions Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: 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:28:09 -0000 I want to look at all of the lines in a FreeBSD log file that do not have an entry from an IP, example 1.2.3.4. Some basic help with the use of grep would be appreciated. This is one of the arguments I've tried that didn't work: grep ^[^1.2.3.4]*$ logfile.log Jay O'Brien Rio Linda, California USA