in reply to How do you write a perl script to calculate the age of a file
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.if (-M $filename > 2) { unlink ($filename); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do you write a perl script to calculate the age of a file
by VSarkiss (Monsignor) on Jun 19, 2001 at 07:32 UTC |