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
#!/bin/bash | |
API= | |
# Set URL for fetching weather information and an Error Msg for invalid input | |
URL=http://api.wunderground.com/api/$API/geolookup/conditions/q/CA/Stanford.xml | |
ERR="Error: Arguments expected in form [City] [State]. Ex: weather Palo_Alto CA" | |
# handles arguments for location / default is Stanford CA | |
# well-formed argument example: "weather Memphis TN" |
NewerOlder