How to download images from an xml feed using terminal?
After curl http://theurlwiththexml.com:

sed -n 's,.*&lt;ImageStuff&gt;\(.*\.png\)&lt;.*,\1,p'|xargs -I, curl http://url1.com/, -o ,


sed -n disables printing, \( and \) are a portable way to specify groups, and p prints the pattern space. xargs -I specifies a replacement string and curl -o specifies an output file.

Or using xmlstarlet, parallel, and wget:

xml sel -t -v //ImageStuff|parallel wget http://url1.com/{}


sel is an abbreviation for select, -t -v uses the value template, and //ImageStuff is an XPath expression that matches all ImageStuff nodes.