I have a list of filenames that exist in a directory online. What is the best way to download them all? For example I want to get the following files:
516d0f278f14d6a2fd2d99d326bed18b.jpg
b09de91688d13a1c45dda8756dadc8e6.jpg
366f737007417ea3aaafc5826aefe490.jpg
from the following directory:
http://media.shopatron.com/media/mfg/10079/product_image/
Maybe something like this:
$var = filelist.txt
for ( $i in $var ) {
wget http://media.shopatron.com/media/mfg/10079/product_image/$i
}
Any ideas?