title: Rename file command in Unix with timestamp
body: <p>Hello I'm using Putty and trying to rename a file name with current timestamp.</p>
  
  <p>I've used following command to rename the files and according to date</p>
  
  <pre><code>mv abc.log $(date +%F)prod.txt
  </code></pre>
  
  <p>Above command renames but not able to rename with time, it giving output as</p>
  
  <pre><code>2014-05-12prodabc.log
  </code></pre>
  
  <p>And following command </p>
  
  <pre><code>abc.log $(date +%y)$(date +%m)$(date +%d)abcprod.log
  </code></pre>
  
  <p>giving output as</p>
  
  <pre><code>140512abc.log
  </code></pre>
  
  <p>Actually my requirement is as following:</p>
  
  <ul>
  <li>Rename <code>abc.log</code> to <code>abc-&lt;current timestamp&gt;.log</code> 
  
  <ul>
  <li>e.g <code>abc.log</code> become <code>abc-12-05-2014-17:31.log</code></li>
  </ul></li>
  <li>Then create new file <code>abc.log</code></li>
  </ul>
  
  <p>Please Help, Thanking you all in advance.</p>