Now use the same sytax to query yahoo weather. Get the point?
curl http://weather.yahoo.com/united-states/california/san-jose-2488042/ | sed '/Current conditions/s/.*id="yw-temp">\([0-9]\+\).*/\1/'
It may be fragile, but any method of extracting data out of HTML is going to be fragile when the provider changes design or layout.A tiny bit of knowledge of grep, sed, and awk, and other simple unix text utilities such as join, comm, cut, paste, goes a long long way.
The tl;dr I got from the article was LINQ is effective at working with sets of data; not just sets of text data from a text file.
I think maybe we're not shooting at the same baskets though (basketball reference, apologies if you're not from US); I'm trying to write software applications, not shell scripts.
curl 'http://weather.yahooapis.com/forecastrss?w=615702&u=c' | \
xmlstarlet sel -N 'y=http://xml.weather.yahoo.com/ns/rss/1.0' \
-t -m '//y:forecast' -v '@text'
edit: corrected xml lineLINQ, on the other hand, can work with arbitrary runtime objects and arbitrary backend implementations. Haskell's still cooler, though.