#!/bin/sh # Get some RSS feed, and parse it to html. # wget --quiet -O $rsslocalfile $rssfeedurl # ./parse.sh $rsslocalfile > $newslocalfile.html xmlgetnext () { local IFS='>' read -d '<' TAG VALUE } cat $1 | while xmlgetnext ; do case $TAG in 'item') title='' link='' pubDate='' description='' ;; 'title') title="$VALUE" ;; 'link') link="$VALUE" ;; 'pubDate') # convert pubDate format for