title: shell script looping through some files in direcctory
body: <p>I have a directory full of csv files, and during runtime I will be generating some intermediate csv files. I would like to only iterate over the original files, and not the ones generated during runtime. The original ones start with "2017", so I was thinking of something along the lines of:</p>
  
  <pre><code>for FILE in "$data_dir"2017*_"$i".csv;
  </code></pre>
  
  <p>where $i comes from iterating through an array of potential strings in this filename. However, even though I would like the results to be:</p>
  
  <p>20170301_file1.csv
  20170301_file2.csv
  20170301_file3.csv
  20170302_file1.csv</p>
  
  <p>etc, an <code>echo</code> on <code>$FILE</code> returns:</p>
  
  <pre><code>2017*_file1.csv
  2017*_file2.csv
  2017*_file3.csv
  </code></pre>
  
  <p>I am not sure how to change the <code>2017*</code> part of my <em>for</em> statement.</p>