[Discuss] Command line question
David Bronaugh
dbronaugh at linuxboxen.org
Wed Jul 26 15:10:49 PDT 2006
Adam Parkin wrote:
> Quick one for the gurus: I have a directory structure that looks
> something like:
>
> ~/temp
> -> user1
> -> CVS
> -> a3
> -> CVS
> -> user2
> -> CVS
> -> a3
> -> CVS
>
> etc, etc for about 37 different "userX" directories. What I want to
> do is remove all of the CVS directories from this tree so that I end
> up with:
>
> ~/temp
> -> user1
> -> a3
> -> user2
> -> a3
>
> What's a quick way of doing this on the command line?
find ~/temp -name CVS -exec rm {} \;
David
More information about the Discuss
mailing list