The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Timestamp issue
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 10-22-2008
SFNYC SFNYC is offline
Registered User
  
 

Join Date: Jun 2008
Location: New York City
Posts: 95

Code:
perl -e 'print strftime "%y%m%d%H%%M%S\n", localtime($mtime);'

Too many % signs in that one and he may need to use Posix.


Code:
perl -e 'use POSIX qw(strftime);print strftime "%y%m%d%H%M%S\n", localtime();'

081022102542