Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2007 00:17:15 +0200
From:      Pieter de Goeje <pieter@degoeje.nl>
To:        freebsd-questions@freebsd.org
Cc:        ann kok <annkok2001@yahoo.com>
Subject:   Re: grep question
Message-ID:  <200707050017.16357.pieter@degoeje.nl>
In-Reply-To: <445024.12701.qm@web53303.mail.re2.yahoo.com>
References:  <445024.12701.qm@web53303.mail.re2.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 04 July 2007, 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
grep '60\.40\.2\.[0-9]*'

HTH,
Pieter de Goeje



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707050017.16357.pieter>