1753765 Members
5674 Online
108799 Solutions
New Discussion юеВ

File Age

 
SOLVED
Go to solution
April Ybarra
New Member

File Age

Is there a way I can get the age of a file in "day of year" format without having to make changes to the way it appears in a ls for everyone else. I can write a lengthy program to do so but I'm hoping to find an easier way.
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: File Age

Hi:

Have a look at 'sls', available from the HP-UX Porting archives:

http://gatekeep.cs.utah.edu/hppd/hpux/Shells/sls-1.0/

Regards!

...JRF...
Craig Rants
Honored Contributor

Re: File Age

Probably the easiest way is to use the perl module date::calc, but if you don't want to do any work, you can probably use Clay's infamous tool.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa0f335067c18d6118ff40090279cd0f9,00.html

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut