Created
July 14, 2018 17:51
-
-
Save khanhtc1202/78ba0eba16d60ed4f9a3a8a4fb4f3a76 to your computer and use it in GitHub Desktop.
Check weather on terminal
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
#!/bin/bash | |
# | |
# khanhtc 08-11-2017 | |
test -z "$1" && exit | |
BASEURL="http://wttr.in/" | |
method="curl -4" | |
# Run command get weather | |
$method $BASEURL$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment