title: Download files using Shell script
body: <p>I want to download a number of files which are as follows:</p>
  
  <pre><code>http://example.com/directory/file1.txt
  http://example.com/directory/file2.txt
  http://example.com/directory/file3.txt
  http://example.com/directory/file4.txt
  .
  .
  http://example.com/directory/file199.txt
  http://example.com/directory/file200.txt
  </code></pre>
  
  <p>Can anyone help me with it using shell scripting? Here is what I'm using but it is downloading only the first file.</p>
  
  <pre><code>for i in {1..200}
  do
  exec wget http://example.com/directory/file$i.txt;
  done
  </code></pre>