Which information you would like to show?
Basicaly, you can do anything with
xmlstarlet (RSS is XML). Fetch feeds with wget or curl. Print what you need.
Given one feed,
Code:
# define your feed url
RSS_URL=http://feeds.feedburner.com/usefreetools
# use "wget -O -" or "curl -g ${RSS_URL} -s"
wget ${RSS_URL} -O - 2>/dev/null | \
xmlstarlet sel -t -m "/rss/channel/item" \
-v "guid" -n -v "pubDate" -n \
-v "title" -n -v "link" -n \
-v "description" -n -n
This will work for RSS2.0.
Do the same in with multiple feeds. Something like this:
Code:
RSS_LIST[0]=url1
RSS_LIST[1]=url2
RSS_LIST[2]=url3
# ...
for r in ${RSS_LIST[@]} ; do
wget ${r} -O - 2>/dev/null | \
xmlstarlet sel -t -m "/rss/channel/item" \
-v "guid" -n -v "pubDate" -n \
-v "title" -n -v "link" -n \
-v "description" -n -n ;
done
P.S. Crossposted this tip also to my blog:
How to parse RSS 2.0 in bash