weather from shell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/
>




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux