How to parse rss-feeds / xml in a shell script How to parse rss-feeds / xml in a shell script xml xml

How to parse rss-feeds / xml in a shell script


Sometimes a simple one liner with shell standard commands can be enough for this:

 wget -q -O- "http://www.rss-specifications.com/rss-podcast.xml" | grep -o '<enclosure url="[^"]*' | grep -o '[^"]*$' | xargs wget -c

Sure this does not work in every case, but it's often good enough.


Do you have access to awk? Maybe you could use XMLGawk


I read about XMLStartlet here and there

But is there a port to ReadyNas NV+ available?