title: shell script to generate new log with date stamp
body: <p>Is there a way to extract the last modified date and time from a log file and attach that date and time to the file?</p>
  
  <p>I have a tool that generates appslist.log file every time it is run.
  Through my script when I run the tool, the applist.log file is already there and then I may have to associate it with the time and date it was created.</p>
  
  <p>Like:</p>
  
  <pre><code>mv applist.log applist_+%Y%m%d_%H%M%S.log
  </code></pre>
  
  <p>Like let's say I ran the tool the first time and it generated applist.log:</p>
  
  <pre><code>applist.log     Mon 03-29-2013
  </code></pre>
  
  <p>The next time I run the tool on 03-30-2013, I want to move the existing applist.log file with a new name containing the date and time it was created:</p>
  
  <pre><code>like applist_03-29-2013.log
  </code></pre>
  
  <p>because the tool would again generate applist.log on 03-30-2013.</p>