Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

RE: RE: RE: search disk and prompt for deletion of files larger than a certain size

by redcloud (Parson)
on Oct 02, 2000 at 06:56 UTC ( #34864=note: print w/ replies, xml ) Need Help??


in reply to RE: RE: search disk and prompt for deletion of files larger than a certain size
in thread search disk and prompt for deletion of files larger than a certain size

The GNU versions can handle the "whitespace in the directory name" problems: find / -name '*.gz' -size +1000k -print0 | xargs -0 rm -i
or find / -name '*.gz' -size +1000k -print0 | xargs -0 -p -n 1 rm

Note the -print0 switch on the find and the -0 switch on the xargs command.


Comment on RE: RE: RE: search disk and prompt for deletion of files larger than a certain size
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-07-06 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls