title: Wget: read URL from file, add sequence of number to the URL
body: <p>I am reading a file (with URL's) line by line:</p>
  
  <pre><code>#!/bin/bash
  while read line
  do
      url=$line
      wget $url
      wget $url_{001..005}.jpg
  done &lt; $1
  </code></pre>
  
  <p>For first, I want to download primary url as you see <code>wget $url</code>. After that I want to add to the url sequence of numbers (_001.jpg, _002.jpg, _003.jpg, _004.jpg, _005.jpg): </p>
  
  <pre><code>wget $url_{001..005}.jpg
  </code></pre>
  
  <p>...but for some reason it's not working.</p>
  
  <p>Sorry, missed out one thing: the url's are like <code>http://xy.com/052914.jpg</code>. Is there any easy way to add _001 before the extension?  <code>http://xy.com/052914_001.jpg</code>. Or I have to remove ".jpg" from the file containing URL's then simply add later to the variable?</p>