Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Are there canned fileserver grooming scripts?

by kilinrax (Deacon)
on Feb 01, 2001 at 21:36 UTC ( #55759=note: print w/replies, xml ) Need Help??


in reply to Are there canned fileserver grooming scripts?

You want to use 'File::Find'.
Here are a couple of examples:
perl -M'File::Find' -e '$\ = qq(\n); find sub { (-s > 1048576) && prin +t $File::Find::name }, q(.);'
(lists files over a megabyte in size)
perl -M'File::Find' -e '$\ = qq(\n); find sub { (-M $_ > 60) && print +$File::Find::name. -M $_ }, q(.);'
(lists files with an access time over 60 days ago)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://55759]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2022-05-20 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?