FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-29-2010, 04:59 PM
Andrei Popescu
 
Default ip address from range script

On Jo, 29 iul 10, 15:54:12, Jozsi Vadkan wrote:
> TEST-A.txt: list of ip address ranges [AS/isp's in a country]
> TEST-B.txt: list of ip addresses
>
> I just need to know, if an ip in the TEST-B.txt is in a range of
> TEST-A.txt
>
> cat "TEST-A.txt"
> 63.31.63.0/24;9007;44536
> 64.65.0.0/19;9000;8263
> 62.64.14.0/21;9001;6852
>
> cat "TEST-B.txt"
> 63.31.63.2
> 64.66.5.4
> 63.31.63.66
> 62.64.14.231
>
> output:
> 63.31.63.0/24;9007;44536
> 63.31.63.2
> 63.31.63.66
> 62.64.14.0/21;9001;6852
> 62.64.14.231
>
>
> -> so is an ip address [in TEST-B.txt] is from my country [TEST-A.txt]
> or not?

Smells like homework

Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
 

Thread Tools




All times are GMT. The time now is 09:20 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org