deleting CVS administrative directories recursively

Peter Hiscocks phiscock-g851W1bGYuGnS0EtXVNi6w at public.gmane.org
Fri Apr 9 16:49:54 UTC 2004


A good preliminary step is to do a version of the find and destroy command
that simply prints a list of the files. If these are the ones and only the
ones that you want to erase, then rerun the command with the rm version.

So using Tom's suggestion, first do

find $start_here -name CVS 

which you could throttle by piping to 'more' or 'less', or you could
redirect to a temporary file and then munge through with an editor.

Then hold your breath and run the destroyer version:

     find $start_here -name CVS -exec rm -rf {} \;

Peter

On Fri, Apr 09, 2004 at 12:30:49PM -0400, Tom Legrady wrote:
> 
> 
> William O'Higgins wrote:
> 
> >I used to use CVS, and I am migrating to subversion.  I don't have my
> >CVS respository (long story), and so the CVS directories all over the 
> >place are of little use to me.  I would like to remove them all, but I'm
> >not sure how.
> >
> >Should I do a find piped to a rm, or is there a better way?  I am
> >uncertain of the best way to do this, and I'd rather not recursively
> >deleted things I actually want, you know?  Thanks.
> >  
> >
> 
> You want
> 
>     sudo rm -rf /*
> 
> no, I mean:
> 
>     find $start_here -name CVS -exec rm -rf {} \;
> 
> 
> Tom
> --
> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml

-- 
Peter D. Hiscocks                         	   
Department of Electrical and Computer Engineering    
Ryerson University,                    
350 Victoria Street,
Toronto, Ontario, M5B 2K3, Canada

Phone:   (416) 979-5000 Ext 6109
Fax:     (416) 979-5280
Email:   phiscock-g851W1bGYuGnS0EtXVNi6w at public.gmane.org
URL:     http://www.ee.ryerson.ca/~phiscock
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list