Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 surveying the Monastery: (15)
As of 2014-07-24 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls