[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unix command(s) to remove files recursively?



Ahoj,

Dňa Tue, 05 Jun 2012 13:14:59 +0100 Chris Bannister
<chris@suddenmoves.org.uk> napísal:

> On 05/06/12 13:12, Slavko wrote:
> 
> > very bad idea, if the file name has spaces…
> >
> > Try:
> >
> > find . -name '*~' -print0 | xargs -0 rm
> >
> or you could just use the -delete option in find.  Much simpler.
> 

yes, this wan mentioned before. My reply was about dangerous usage of
the find and xargs pipe…

-- 
Slavko
http://slavino.sk

Attachment: signature.asc
Description: PGP signature


Reply to: