To find country names of all the ips in ips.txt
./ipinfo.sh country ips.txt
will append all the countries to a out.txt file
cat out.txt | sort u
will list all unique countries/list from the list
To find city names of all the ips in ips.txt
./ipinfo.sh city ips.txt