The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
change created and modification time if symbolic links avanigadhai Filesystems, Disks and Memory 1 02-28-2008 02:07 AM
File modification panknil Shell Programming and Scripting 2 10-04-2007 04:04 AM
SED for text file modification gfhgfnhhn Shell Programming and Scripting 6 07-07-2006 05:41 AM
Diff b/w modification & updated time sweta UNIX for Advanced & Expert Users 1 06-07-2006 01:05 AM
command for modification date of a file scampsd UNIX for Dummies Questions & Answers 5 12-28-2005 05:14 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-03-2001
Registered User
 

Join Date: Sep 2001
Location: Green Bay, WI
Posts: 66
File modification time

Does anyone know how to display the time with seconds
of when a file was last modified. I can get hour & minutes but
would also like seconds. --Running AIX
Forum Sponsor
  #2  
Old 10-03-2001
Registered User
 

Join Date: Oct 2001
Location: San Francisco
Posts: 27
Try this:

<PRE>
perl -e '@stat=stat("/etc/passwd");$now_string=localtime($stat[9]);p
rint $ARGV[0].":$now_string\n"' /your/file
</PRE>
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0