in reply to Re^3: Delete old files
in thread Delete old files
... # get all ttct files from here my @file_list= glob("old/*.txt"); for my $files (@file_list) { if ($now-(stat $files)[9] > $age) { # file older than 7 days print "$files\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Delete old files
by roboticus (Chancellor) on Mar 18, 2014 at 11:42 UTC |