diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-12-01 16:05:36 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-12-01 16:06:20 +0100 |
commit | 3eb9b83189845d73fc54d1d65b0856b088304ed2 (patch) | |
tree | fed2dc2527b80a7d860c40ec7a85b3875ff73ac8 /geoip-hostnames | |
parent | 0ea8f6c97c58d3b95f7ab3951b08dea73e566082 (diff) | |
download | bin-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-x | geoip-hostnames | 6 |
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 |