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 18.104.22.168"
and the result : 36351 | 22.214.171.124 | 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.