From owner-freebsd-questions@FreeBSD.ORG Wed Jul 4 22:41:23 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6DFC916A400 for ; Wed, 4 Jul 2007 22:41:23 +0000 (UTC) (envelope-from pprocacci@bellsouth.net) Received: from imf21aec.mail.bellsouth.net (imf21aec.mail.bellsouth.net [205.152.59.69]) by mx1.freebsd.org (Postfix) with ESMTP id E844113C4B0 for ; Wed, 4 Jul 2007 22:41:22 +0000 (UTC) (envelope-from pprocacci@bellsouth.net) Received: from ibm63aec.bellsouth.net ([70.156.10.107]) by imf21aec.mail.bellsouth.net with ESMTP id <20070704224122.YLZQ19919.imf21aec.mail.bellsouth.net@ibm63aec.bellsouth.net> for ; Wed, 4 Jul 2007 18:41:22 -0400 Received: from [10.5.21.243] (really [70.156.10.107]) by ibm63aec.bellsouth.net with ESMTP id <20070704224121.AXH13159.ibm63aec.bellsouth.net@[10.5.21.243]>; Wed, 4 Jul 2007 18:41:21 -0400 Message-ID: <468C2204.1070408@bellsouth.net> Date: Wed, 04 Jul 2007 17:41:08 -0500 From: Paul procacci User-Agent: Thunderbird 2.0.0.0 (X11/20070611) MIME-Version: 1.0 To: ann kok References: <445024.12701.qm@web53303.mail.re2.yahoo.com> In-Reply-To: <445024.12701.qm@web53303.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: grep question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2007 22:41:23 -0000 ann kok wrote: > Hi all > > how can I use grep to have the output as 60.40.2.x > > eg: > 60.40.2.5 > 60.40.2.3 > 60.40.2.7 > > except 60.40.2x.x > > eg: > 60.40.20.5 > 60.40.23.6 > 60.40.25.7 > > Thank you > > > > > ____________________________________________________________________________________ > Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. > http://autos.yahoo.com/green_center/ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > Sorry, after re-reading the question, I must admit I think I misunderstood. Pieter de Goeje's response seems to be more along the lines of what you were looking for. ;P