From http://www.manifestdensity.net/2007/07/27/command_line_rock/ , a terse recipe for fetching all the URLs in an XSPF document from a unix console: curl http://barsukmusic.blaireau.net/player/bark067/bark067.xspf | grep "<location" | perl -ple "s/<.*?>//igx" | xargs curl -O