more useful options | |
PerlMonks |
Re: How do you write a perl script to calculate the age of a fileby ezekiel (Pilgrim) |
on Jun 19, 2001 at 03:58 UTC ( [id://89524]=note: print w/replies, xml ) | Need Help?? |
I think the -M operator gives you the number of days since a file was last modified. Hence:
should work if you want to delete files that were last modified over 2 days ago. -A and -C do the same thing based on last access time and last inode change.
In Section
Seekers of Perl Wisdom
|
|