Looping through dates in bash to download files in "2016/201601031400" format
<p>I'm fairly new to bash and Linux. So this might be a silly question.</p>

<p>I am trying to make a bash script to download multiple files from a website. The files are at the URLs in the format <code>http://example.com/xyz/abc/2016/201601031400.tar.gz</code></p>

<p>Note that the file name contains the  year, month, date and time. The data iterates through all the dates from 2007/01/01 to 2016/12/31; the time always remains the same: "1400".</p>

<p>I want to loop through each date in the dates span and want to download all the tar.gz files.</p>

<p>Can someone please help me with the looping part and dynamically generating the URL for wget to download the file?</p>