[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xargs & find documentation EXAMPLE suggestions
From: |
Andreas Metzler |
Subject: |
Re: xargs & find documentation EXAMPLE suggestions |
Date: |
Tue, 10 Aug 2004 08:37:08 +0200 |
User-agent: |
Mutt/1.5.6+20040722i |
On 2004-08-10 Andreas Metzler <address@hidden> wrote:
> On 2004-08-10 Jeff Carr <address@hidden> wrote:
> > It'd be really good to have some examples in the xargs man & info pages.
> > One thing I've never know the best way to do is:
> > find . |grep CVS |xargs -n 1 rm -rf
> [...]
> delete anything that contains "CVS" in path or filename?
Grr. Re-reading, I see that you want it the other way round, actually
you just want to delete the CVS directories:
find . -name CVS -type d -print0 | xargs -0r rm -r
cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"