Assuming that the IP addresses are in a file called list.txt
in a format such as below:
|
|
A prerequisite for this is the geoiplookup
command, which is available in the geoip-bin
package on most distros.
Run the following command to get the frequency distribution:
|
|
This will give you an output as:
|
|
Read Next
I’m running an experiment for better content recommendations. These are the 3 posts that are most likely to be interesting for you:
-
Get Docker Containers running in a particular network
Unlock the power of your network by learning how to effortlessly identify and organize running Docker containers, just like you mastered mapping IP addresses to countries. -
Scraping the MPB website - A Postmortem
Uncover the trials and triumphs of data extraction as you journey from mapping IP geolocations to wrestling with web scraping challenges, learning from real-world tech adventures. -
3 ways to render inline lists in PHP
Unravel the art of data manipulation further by exploring how PHP can streamline your list processing tasks, just as you’ve mastered geographical data analysis with Linux commands.