Re: [Tutor] searching for an ip and subnets in a dir of csv's

2009-07-29 Thread Martin A. Brown
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, : The script will be ran from a third party tool so only one : argument can be passed to it which will be an entire IP address. : If within the CSV's there is no 32 bit match there could be a : subnet that might match, thats why I need

Re: [Tutor] searching for an ip and subnets in a dir of csv's

2009-07-29 Thread Wayne
On Wed, Jul 29, 2009 at 7:43 AM, Nick Burgess wrote: > And you were looking for 192.168.1.2, do you want it to return nothing? Or > both 192.168.1.1 and 192.168.1.10? Or only 192.168.1.1 as it's the closest > match? > > I would like it to return both, all possible matches. > > The data looks some

Re: [Tutor] searching for an ip and subnets in a dir of csv's

2009-07-29 Thread Nick Burgess
And you were looking for 192.168.1.2, do you want it to return nothing? Or both 192.168.1.1 and 192.168.1.10? Or only 192.168.1.1 as it's the closest match? I would like it to return both, all possible matches. The data looks something like this in the CSV's, Server foo.bar.org

Re: [Tutor] searching for an ip and subnets in a dir of csv's

2009-07-29 Thread Wayne
On Tue, Jul 28, 2009 at 9:36 PM, Nick Burgess wrote: > Good evening List, > > I am trying to have this script search for an IP or nearest subnet > match in a dir of csv's. It works with an absolute match, It will be > receiving a whole IP address, so if there is no absolute match no data > is ret

[Tutor] searching for an ip and subnets in a dir of csv's

2009-07-28 Thread Nick Burgess
Good evening List, I am trying to have this script search for an IP or nearest subnet match in a dir of csv's. It works with an absolute match, It will be receiving a whole IP address, so if there is no absolute match no data is returned, however if it is listed somewhere in a subnet I want to kn