Last active
August 27, 2019 13:40
-
-
Save taylorotwell/c8d5cccae16d040ee3d6d3e34a26127a to your computer and use it in GitHub Desktop.
Weather CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias weather='curl -s wttr.in | sed -n "1,7p"' |
Nice... thanks for the tip.
Ha, awesome! Thanks!!
#silly little adjustments
alias wea="curl -s wttr.in | sed -n '1,7p'" #current weather
alias weal="curl -s wttr.in | sed -n '1,38p'" #long weather.. all data
alias weatd="curl -s wttr.in | sed -n '1,17p'" #weather today
alias weatm="curl -s wttr.in | sed -n '1,7p'" #weather tomorrow
Cool!
good!!!
@KodiakSA your last line uses wrong numbers. It should be
alias weatm="curl -s wttr.in | sed -n '18,27p'" #weather tomorrow
Great rsrsrs
No need for sed:
curl -s wttr.in/"?0"
This is awesome. 👍
Awesome
cool
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is so cool!