summaryrefslogtreecommitdiffstats
path: root/geoip-hostnames
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-12-01 16:05:36 +0100
committerFlorian Pritz <bluewind@xinu.at>2016-12-01 16:06:20 +0100
commit3eb9b83189845d73fc54d1d65b0856b088304ed2 (patch)
treefed2dc2527b80a7d860c40ec7a85b3875ff73ac8 /geoip-hostnames
parent0ea8f6c97c58d3b95f7ab3951b08dea73e566082 (diff)
downloadbin-3eb9b83189845d73fc54d1d65b0856b088304ed2.tar.gz
bin-3eb9b83189845d73fc54d1d65b0856b088304ed2.tar.xz
Add new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'geoip-hostnames')
-rwxr-xr-xgeoip-hostnames6
1 files changed, 6 insertions, 0 deletions
diff --git a/geoip-hostnames b/geoip-hostnames
new file mode 100755
index 0000000..bd6849f
--- /dev/null
+++ b/geoip-hostnames
@@ -0,0 +1,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