Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Are there canned fileserver grooming scripts?

by kilinrax (Deacon)
on Feb 01, 2001 at 21:36 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found