From owner-freebsd-questions@FreeBSD.ORG Wed Jul 4 22:24:13 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 5523216A400 for ; Wed, 4 Jul 2007 22:24:13 +0000 (UTC) (envelope-from pprocacci@bellsouth.net) Received: from imf24aec.mail.bellsouth.net (imf24aec.mail.bellsouth.net [205.152.59.72]) by mx1.freebsd.org (Postfix) with ESMTP id E4D8E13C4B8 for ; Wed, 4 Jul 2007 22:24:12 +0000 (UTC) (envelope-from pprocacci@bellsouth.net) Received: from ibm67aec.bellsouth.net ([70.156.10.107]) by imf22aec.mail.bellsouth.net with ESMTP id <20070704213110.BPAN27770.imf22aec.mail.bellsouth.net@ibm67aec.bellsouth.net> for ; Wed, 4 Jul 2007 17:31:10 -0400 Received: from [10.5.21.243] (really [70.156.10.107]) by ibm67aec.bellsouth.net with ESMTP id <20070704213110.VJNN28412.ibm67aec.bellsouth.net@[10.5.21.243]>; Wed, 4 Jul 2007 17:31:10 -0400 Message-ID: <468C1191.3030901@bellsouth.net> Date: Wed, 04 Jul 2007 16:30:57 -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:24:13 -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" > > egrep "60.40.2[0-9]?." < blah.txt ;P Cheers!