Created
June 7, 2016 12:23
-
-
Save pascalwhoop/93ec259f486d35aa29c8da008d05209e to your computer and use it in GitHub Desktop.
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
#weather function | |
function weather() { | |
if [[ $1 != "in" ]] | |
then | |
CITY=$1 | |
else | |
CITY=$2 | |
fi | |
curl http://wttr.in/$CITY; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment