in reply to Are there canned fileserver grooming scripts?
(lists files over a megabyte in size)perl -M'File::Find' -e '$\ = qq(\n); find sub { (-s > 1048576) && prin +t $File::Find::name }, q(.);'
(lists files with an access time over 60 days ago)perl -M'File::Find' -e '$\ = qq(\n); find sub { (-M $_ > 60) && print +$File::Find::name. -M $_ }, q(.);'
|
|---|