geoip lookup

geoip(){curl -s "${1}" | sed '/^IP:/!d;s/<[^>][^>]*>//g' ;}

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

What Others Think

Or: curl -s "$(curl -s" | sed '/^IP:/!d;s/<[^>][^>]*>//g'
matthewbauer · 662 weeks and 1 day ago
@matthewbauer: your version works. the original version gives me an error.
getkaizer · 659 weeks and 6 days ago
Doesn't work any more, they added captcha. Bastards! :)
mbonaci · 364 weeks and 4 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 · 88 weeks and 3 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 · 78 weeks and 5 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">homepage to get standard material about how to write. It requires some hypothesis and cash while discovering anything on the standard books.
anonymous996 · 78 weeks and 5 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 · 78 weeks and 3 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 · 74 weeks and 6 days ago
Youngsters that are 4 - 6 years of age are around the starting events of their life. Once visit for more info. This is additionally when their capacities and socialization aptitudes are being made and changed.
anonymous00 · 73 weeks and 5 days ago
While examining enrolling and trying any understudy electronic orchestrating program, there are different parts that ought to be considered. I often visit for getting wonderful ideas. This choice ought to be taken by your ideal calling decision.
anonymous00 · 73 weeks and 5 days ago
seofox · 20 weeks ago
I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts. Tustin Pest Control
Killili · 16 weeks and 5 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? 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.


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: