- Use the IPinfo CLI
grepipcommand can extract all the IP addresses. Then you can run
sort -uto get the unique IP addresses.
- From the unique IPs, you can do bulk data enrichment with the
So, all in all, the code will be:
cat somedata.txt | ipinfo grepip -o | sort -u | ipinfo bulk -c > ip_data.csv