#!/bin/bash
#                       /usr/local/bin/rssdown
#  http://crystalfaeries.net/posix/bin/rssdown
# celeste:crystalfaery 2016-05-29 18:05:15+00:00
# Download all files from podcast RSS feed(s):
# http://www.commandlinefu.com/commands/view/17358/download-all-files-from-podcast-rss-feed

cd /home/downloads
while [ $# -ne 0 ]
do
	curl ${1} | grep -o '<enclosure url="[^"]*' | grep -o '[^"]*$' | xargs wget -c
	shift	# next Feed URL
done


syntax highlighted by Code2HTML, v. 0.9.1