one option:
rm -r */*/CVS
would delete all occurences of anything/anything/CVS
another way:
find some/path -type d -name CVS | xargs rm -r 


On Fri, Jan 21, 2005 at 07:33:54PM +0000, M�rio Gamito wrote:
> Hi,
> 
> I have this huge directory tree.
> Each branch has a "CVS" directory, that i now want to delete.
> 
> How can i delete recursevely all the "CVS" directories and its contents, 
> but not the other files ?
> 
> I've squeezed my head with find piping to xargs, but i always end up 
> deleting everything :-(
> 
> Any help would be apreciated.
> 
> Warm Regards.
> -- 
> M�rio Gamito
> Administra��o de sistemas e desenvolvimento
> Netual - Multim�dia e Telecomunica��es, Lda.
> Rua Jo�o Afonso, N�1
> 3800-198 Aveiro - Portugal
> Tel. +351 234 371 431 / Fax. +351 234 371 438
> E-mail: [EMAIL PROTECTED]
> www.netual.pt
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to