3 ms·
For illustration (probably wrong again): curl 'http://weather.yahooapis.com/forecastrss?w=615702&u=c' | \ xmlstarlet sel -N 'y=http://xml.weather.y
by papaf 15y ago
For illustration (probably wrong again):
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 line
- moomin 15y agoI'm sorry, but you're still missing the point. The point is that the syntax with LINQ is actually the same. Saying you have a program to do X in bash is the equivalent to saying you've got a library to do X in C# or Java. LINQ, on the other hand, can work with arbitrary runtime objects and arbitrary backend implementations. Haskell's still cooler, though.