i have a small weather script, for graphing weather, but
sed doesnt work right for part of it, and i do not see anything wrong with it. it has been bugging me for about 2 days now, so i figure its time to post, and ask.
Code:
cat /var/tmp/localweather.xml | grep "<s>" | awk -F'>' '{print $2}' | awk -F'<' '{print $1}' | sed 's/C|c|L|l|M|m|N|n|A|a\//0/g'
basically if the weather report says the wind is "calm" or "N\A" of any sort, its supposed to change it to 0. but it doesnt, it still reports "calm".