title: bash parse filename
body: <p>Is there any way in bash to parse this filename : </p>
  
  <p><code>$file = dos1-20120514104538.csv.3310686</code> </p>
  
  <p>into variables like <code>$date = 2012-05-14 10:45:38</code> and <code>$id = 3310686</code> ? </p>
  
  <p>Thank you</p>