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