Operating System - HP-UX
1833758 Members
2870 Online
110063 Solutions
New Discussion

Need last modifed /last accessed timestamps

 
Don Dwyer
New Member

Need last modifed /last accessed timestamps

Is there an easy way to get the last modified and last accessed timestamps in usable format (ie mm/dd/yyyy:hh:mm:ss) for a file using korn shell?

1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: Need last modifed /last accessed timestamps

I have a small perl script that will do that for you.

ftime.pl -e -m file1 file2 ...
will display the mtimes in epoch seconds

ftime.pl -e -a file1 file2 ...
will display the atimes in epoch seconds.

Drop the -e to get a formatted timestatmp.
If it ain't broke, I can fix that.