[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Removing .SVN administrative folders within a working copy

From: Marc Haisenko <haisenko_at_webport.de>
Date: 2005-03-07 10:13:35 CET

On Sunday 06 March 2005 04:21, Ryan Schmidt wrote:
> On 05.03.2005, at 18:36, Simon Perreault wrote:
> > On March 4, 2005 13:41, Jonathan Chum wrote:
> >> I was wondering if there is a way to recusrively remove all .SVN
> >> folders
> >> without doing an export.
> >
> > rm -rf `find . -type d -name .svn`
>
> Doesn't work so well when you have spaces anywhere in your paths.
> Better:
>
> find . -type d -name .svn -print0 | xargs -0 rm -rf

... or yet another alternative which will safe you one pipe and one process:

find . -type d -name .svn -exec rm -rf "{}" \;

:-)
C'ya,
        Marc

-- 
Marc Haisenko
Systemspezialist
Webport IT-Services GmbH
mailto: haisenko@webport.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 7 10:16:11 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.