geoip lookup

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

4
By: twfcc
2009-10-19 05:48:07
sed

What Others Think

Or: curl -s "http://www.geody.com/geoip.php?ip=$(curl -s icanhazip.com)" | sed '/^IP:/!d;s/<[^>][^>]*>//g'
matthewbauer · 608 weeks and 1 day ago
@matthewbauer: your version works. the original version gives me an error.
getkaizer · 606 weeks ago
Doesn't work any more, they added captcha. Bastards! :)
mbonaci · 310 weeks and 5 days ago
Despite the original version is giving the same kind of error that others facing your provided method is working finely. Whenever I face problems pertaining to the commands I visit your platform to get the solution of it. Well, if you want to write an article about it you should visit free essay blog AskPetersen source to get the possible ideas about writing it.
GilesGerhold · 34 weeks and 4 days ago
Unquestionably, the productivity and abundancy of the web arranging structure can't be ignored. Visit homepage for getting marvelous tips. There are innumerable understudies who are getting a charge out of instructive central focuses basically pondering this structure.
anonymous996 · 24 weeks and 6 days ago
I am utilizing Kindle since it is permitting me to locate any ideal data when appeared differently relating to the standard getting material. Try this http://www.apostrophechecker.com/">homepage to get standard material about how to write. It requires some hypothesis and cash while discovering anything on the standard books.
anonymous996 · 24 weeks and 6 days ago
I have seen various individuals who are in no limit, practicing religion any more yet they promise themselves to be uncommonly severe. Try this homepage for more guidance. This isn't acceptable in any capacity.
Ahmed74 · 24 weeks and 4 days ago
Alaska is a U.S. state in the northwest extremity of the United States West Coast, just across the Bering Strait from Asia. MaxRemind top rank medical billing company offer Medical Billing Services in Alaska , home health software and medical credentialing service in USA.
stevematt · 21 weeks ago
Youngsters that are 4 - 6 years of age are around the starting events of their life. Once visit http://www.commacheck.net/10-ideas-for-a-comma-placement-check/ for more info. This is additionally when their capacities and socialization aptitudes are being made and changed.
anonymous00 · 19 weeks and 6 days ago
While examining enrolling and trying any understudy electronic orchestrating program, there are different parts that ought to be considered. I often visit http://www.copychecker.org/how-to-check-essay-for-plagiarism-4-ways/ for getting wonderful ideas. This choice ought to be taken by your ideal calling decision.
anonymous00 · 19 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: