![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |