Assuming that the IP addresses are in a file called list.txt in a format such as below: 1 2 3 4 5 6 7 8 9 104.28.29.66 92.40.175.51 116.255.32.201 91.150.51.170 108.167.20.103 5.187.159.175 166.198.250.121 74.78.184.213 ... 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: 1 cat list.txt | xargs -n 1 geoiplookup | sed 's/GeoIP Country Edition: //g' | sort | uniq -c | sor...