title: How Can I Download Multiple Files in a Directory?
body: <p>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:</p>
  
  <pre><code>516d0f278f14d6a2fd2d99d326bed18b.jpg
  b09de91688d13a1c45dda8756dadc8e6.jpg
  366f737007417ea3aaafc5826aefe490.jpg
  </code></pre>
  
  <p>from the following directory:</p>
  
  <p><a href="http://media.shopatron.com/media/mfg/10079/product_image/" rel="nofollow">http://media.shopatron.com/media/mfg/10079/product_image/</a></p>
  
  <p>Maybe something like this:</p>
  
  <pre><code>$var = filelist.txt
  for ( $i in $var ) {
      wget http://media.shopatron.com/media/mfg/10079/product_image/$i
  }
  </code></pre>
  
  <p>Any ideas?</p>