Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Finding biggest files

by Crulx (Monk)
on Feb 29, 2000 at 14:40 UTC ( [id://4559]=note: print w/replies, xml ) Need Help??


in reply to Finding biggest files

I agree with the posters above on using find. But of course, you want to run this program every once in a while and you haven't figured out how to do shell programming so you combine the two and put in the program in perl!
#!/usr/bin/perl system(qq[find ~ -size +1024k -printf "%p: %s\\n" -ok rm \\;]) == 0 or die "System call failed: $?";
Ahh, Sweet perl.
---
Crulx
crulx@iaxs.net

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-26 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found