title: How to loop through dates using Bash?
body: <p>I have such bash script:</p>
  
  <pre><code>array=( '2015-01-01', '2015-01-02' )
  
  for i in "${array[@]}"
  do
      python /home/user/executeJobs.py {i} &amp;&gt; /home/user/${i}.log
  done
  </code></pre>
  
  <p>Now I want to loop through a range of dates, e.g. 2015-01-01 until 2015-01-31.</p>
  
  <p>How to achieve in Bash?</p>
  
  <p><strong>Update</strong>: </p>
  
  <p>Nice-to-have: No job should be started before a previous run has completed. In this case, when executeJobs.py is completed bash prompt <code>$</code> will return.</p>
  
  <p>e.g. could I incorporate <code>wait%1</code> in my loop?</p>