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); }
In reply to Re: How do you write a perl script to calculate the age of a file
by ezekiel
in thread How do you write a perl script to calculate the age of a file
by kleinbiker7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |