Re: Deleting multiple directories with the same name

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

 



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: gamito@xxxxxxxxx
> www.netual.pt
> -
> : send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux