in reply to use file::find to find files modified in last 5 days
The docs of File::Find show this example:
produces something like:find2perl / -name .nfs\* -mtime +7 \ -exec rm -f {} \; -o -fstype nfs -prune
what's wrong with it?sub wanted { /^\.nfs.*\z/s && (($dev, $ino, $mode, $nlink, $uid, $gid) = lstat($_)) && int(-M _) > 7 && unlink($_) || ($nlink || (($dev, $ino, $mode, $nlink, $uid, $gid) = lstat($_ +))) && $dev < 0 && ($File::Find::prune = 1); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: use file::find to find files modified in last 5 days
by bart (Canon) on Feb 22, 2012 at 12:49 UTC | |
by talexb (Chancellor) on Feb 23, 2012 at 17:44 UTC | |
Re^2: use file::find to find files modified in last 5 days
by mikesolomon (Novice) on Feb 22, 2012 at 12:54 UTC | |
by talexb (Chancellor) on Feb 23, 2012 at 17:37 UTC |
In Section
Seekers of Perl Wisdom