geoip lookup with curl on geody.com

2010-04-11 1 min read Linux

$ geoip(){curl -s "http://www.geody.com/geoip.php?ip=${1}" | sed '/^IP:/!d;s/<[^>][^>]*>//g' ;}

  • <a href="http://www.commandlinefu.com/commands/view/3835/geoip-lookup">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/twfcc">View all commands by <a href="http://feeds2.feedburner.com/commands/by/twfcc">twfcc

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="commandlinefu.com" align="bottom" />

by David Winterbottom (<a href="http://codeinthehole.com">codeinthehole.com)

<a href="http://feedads.g.doubleclick.net/~a/cceHjCeJpY_mGEm7ufxOyYvznhw/0/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/cceHjCeJpY_mGEm7ufxOyYvznhw/0/di" border="0" alt="" align="bottom" />
<a href="http://feedads.g.doubleclick.net/~a/cceHjCeJpY_mGEm7ufxOyYvznhw/1/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/cceHjCeJpY_mGEm7ufxOyYvznhw/1/di" border="0" alt="" align="bottom" />

<img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~r/Command-line-fu/~4/TiutyTYxoU0" border="0" alt="" width="1" height="1" align="bottom" />

URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/TiutyTYxoU0/geoip-lookup">http://feedproxy.google.com/~r/Command-line-fu/~3/TiutyTYxoU0/geoip-lookup<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.killerstartups.com/Web-App-Tools/retwt-me-shortening-links-in-a-new-setting">ReTwt.me – Shortening Links In A New Setting (killerstartups.com) <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/9044e865-5beb-432f-b243-31d6858ee7a2/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_e21.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related pretty-attribution">

comments powered by Disqus