geoip information

curl -s "$(curl -s" | 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.
Sample Output
IP: ***.***.*.** Location: new delhi, DELHI, India   (BHARTI INFOTEL LTD.)

By: getkaizer
2009-11-04 07:15:02

4 Alternatives + Submit Alt

What Others Think

This interest is actually so brilliant, particularly in the mid year season. At the point when the climate is fine and you likewise a decent rider of the bike then you ought to go mountain side and appreciate the ride an dnow essaypro service are helpful for students. This first test ought to be a triumph since future relies upon it.
RonaldBrown · 120 weeks and 1 day ago
Nice, you can also connect to us at
sarahwinget · 81 weeks ago ??? ? ????? ????
seofox · 15 weeks and 5 days ago
seofox · 14 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? 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: