$ curl -s "http://www.geody.com/geoip.php?ip=$(curl -s icanhazip.com)" | sed '/^IP:/!d;s/<[^>][^>]*>//g'
Not my script. Belongs to mathewbauer. Used without his permission.
This script gives a single line as shown in the sample output.
NOTE: I have blanked out the IP address for obvious security reasons. But you will get whatever is your IP if you run the script.
Tested working in bash.
by David Winterbottom (codeinthehole.com)
0sem comentários ainda