#!/bin/sh IP="`wget -q -O - http://ipecho.net/plain`" echo $IP whois $IP | grep country: | cut -d ' ' -f9,10