summaryrefslogtreecommitdiffstats
path: root/geoip-hostnames
blob: bd6849f2a91ea828ef7e246d8a5504fc499256c0 (plain)
1
2
3
4
5
6
#!/bin/bash

for i in "$@"; do
	printf '%s ' "$i"
	geoiplookup "$i" | grep 'GeoIP City Edition, Rev 1:' | sed 's#GeoIP City Edition, Rev 1: ##'
done