No such thing as a small change | |
PerlMonks |
RE: RE: RE: search disk and prompt for deletion of files larger than a certain sizeby redcloud (Parson) |
on Oct 02, 2000 at 06:56 UTC ( [id://34864]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Cool Uses for Perl
|
|