I have a file that has IP addresses and usernames like so:
there are about 26000 lines.
What i need to do is use the whois server whois.cymru.com and get the ASNumber and Country code for each IP address, and then have a result like this
A normal whois on that server would be like:
whois -h whois.cymru.com " -c -o -f 184.108.40.206"
and the result : 36351 | 220.127.116.11 | US
The server itself provides bulk queries with netcat but for some reason, the results are more than the IPs provided.
I can extract the IP addresses with a "cut -f 1 file". Then I'm stuck.