|
How to calculate file age ? "File xy is 2 days 3 hours old"
Hello
I'm trying to make a list of the age or the elapsed time since the last modification of my files.
It should look this way:
File xy 2 days 3 hours 11 minutes
File yz 1 month 5 days 7 hours 23 minutes
I tried to do this with "ls -l" and awk for the values, but it's the wrong way.
I did not found anything like filedate - sysdate.
I prefer bash, put perl will be fine too :-)
TIA
Fluppi
|