title: Rename JPG files according to date created
body: <p>I want to rename all files in a certain directory. Renaming them to their date of creation.<br>
  So if my file is Image1.jpg, it should rename into something like "Jan 16 12:09:42 2011.jpg"<br>
  I want to do this through command line. I've been trying:  </p>
  
  <pre><code>stat -f %SB Image0100.jpg
  </code></pre>
  
  <p>But how can I combine this with <code>mv</code> command? And how will I iterate <code>stat</code> and <code>mv</code> through the whole files?<br>
  Or are there simple ways to rename all files with their date creation?</p>