Created
July 1, 2019 04:10
-
-
Save nicoaudy/a37bdbf8d3cce0d9692fe61d9be3ecb4 to your computer and use it in GitHub Desktop.
Weather CLI
This file contains hidden or 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"' | |
| alias weather_now="curl -s wttr.in | sed -n '1,7p'" #current weather | |
| alias weather_today="curl -s wttr.in | sed -n '1,17p'" #weather today | |
| alias weather_tommorow="curl -s wttr.in | sed -n '18,27p'" #weather tomorrow | |
| alias weather_all="curl -s wttr.in | sed -n '1,38p'" #long weather.. all data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment