What's the weather like?

curl -s ip.appspot.com | xargs -n 1 curl -s "freegeoip.net/csv/$1" | cut -d ',' -f '9 10' | sed 's/,/\&lon=/g' | xargs -n 1 echo "http://api.openweathermap.org/data/2.5/weather?mode=html&lat=$1" | sed 's/ //g' | xargs -n 1 curl -s $1 | lynx -stdin -dump
Just 253 chars of pure UNIX magic, with curl. I created this contrived bash one-liner while building a command-line bash game : www.rubegoldbash.com.
Sample Output
   Endeavour Inlet

   Clouds: 88%
   Humidity: 98%
   Wind: 13.12 m/s
   Pressure: 1013.76hpa

What Others Think

OK, I work for a gaming company, but we actually run games on the GPU. The final product is satisfactory. You will find some Egypt Sky casino games on this page. This page is helpful for those who want to play online games.
almasmith · 5 weeks ago
Most likely you noticed how often the weather began to change and natural disasters intensified, this suggests that global warming is one of the most pressing and important problems of the modern world, and humanity greatly affects this factor, so I want you to devote just a few minutes of your time to article https://getassist.net/global-warming-is-a-challenge-in-21st-century/ which tells us that global warming is our major milestone in the 21st century. I believe that everyone should talk about this and always actively participate in the fight against it. From this article, you can learn about the many ways to prevent global warming.
Ruchoculd · 3 weeks and 2 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: