Command line snippet of the week: 52
24th of December, 2009 | Filed under Code Snippet of the Week
Need to have IP location information? Use:
curl -s "http://www.geody.com/geoip.php?ip=$(curl -s icanhazip.com)" | sed '/^IP:/!d;s/<[^>][^>]*>//g'
It returns with your IP information such as:
IP: 13.13.133.713 Location: Amsterdam, NOORD-HOLLAND, Netherlands (N.V. XS4ALL)
Replace (curl -s icanhazip.com) to show a different IP than your own.
