Try....
 
grep -E "192\.168\.2\.(6[4-9]|[7,8][0-9]|9[0-5])"

M.


On Wed, 1 Nov 2000, Dan Horth wrote:

> hiya - I'm trying to make a regexp string to match the following IP range:
> 
> 192.168.2.64/27
> 
> ie I want to match 192.168.2.64 through 192.168.2.95 inclusive, but 
> do not want to match things like 192.168.2.60 or 192.168.2.99
> 
> I'm kinda close with:
> 
> grep "192\.168\.2\.[6-9][0-9]"
> 
> except it's basically matching 192.168.2.60 - 192.168.2.99 inclusive...
> 
> I really want to make the match with just one REGEXP - is this 
> possible or am I being deluded?
> 
> 
> TIA _ dan.
> 
> ps. thanks for all those who sent in stuff about my NetWare vs Linux 
> conundrums... will be posting a follow-up on that after lunch...
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to