weather from shell
Raul A. Gallegos
raul at asmodean.net
Fri Mar 1 15:21:52 EST 2002
I have a better idea. How about this:
#!/bin/bash
if [ "$#" -lt "1" -o "$#" -gt "2" ] ;then
echo "Usage: wxw zip or wxw cityname."
echo "Example: wxw 66212 or wxw Overland Park"
exit 1
fi
if [ "$#" -eq "1" ] ;then
QUERY="$1"
else
QUERY="$1+A$2"
fi
lynx
"http://braille.wunderground.com/cgi-bin/findweather/getForecast?query=$QUERY"
Charles Hallenbeck said the following on Fri, Mar 01, 2002 at 02:51:08PM -0500:
> Here is a script I use. I call it 'wxw'.
> #!/bin/bash
> lynx http://braille.wunderground.com/
>
More information about the Speakup
mailing list