RSS Feed Manipulation
Find items in feed XML with more than one enclosure
# shell
for file in *; do
echo "$file"
xpath "$file" '//item[enclosure][count(enclosure) > 1]'
echo "-----"
done
To find enclosures in above
//item[enclosure][count(enclosure) > 1]/enclosure
Fetch feeds from OPML
# shell
grep -Eo 'xmlUrl="[^"]+"' Podcasts.opml | grep -oE 'http:[^"]+' | wget -i -
Find extensions used in feeds
# shell
grep -hEro "enclosure url=[\"'][^\"']+[\"']" .| grep -Eo "\.[^.]+[\"']"|sort -u
Find content types used in feed
# shell
grep -Eohr "type=[\"'][^'\"]+[\"']" .|sort -u
Last modified: 02 October 2015