title: Bash convert string to timestamp
body: <p>I have a string in format <code>20141225093000</code> which represents <code>Dec 25, 2014 09:30:00</code> and I want to convert the original format to a unix timestamp format so i can do time operations on it.How would I do this in bash?</p>
  
  <p>I can easily parse out the values with <code>expr</code> but I was hoping to be able to identify a format like YYYYmmddHHMMSS and then convert it based on that.</p>