On Tue, 19 Oct 2004 10:56:39 -0700, Raye Raskin <rayer@pobox.com> wrote:
>
> ----- Original Message -----
> From: "Hakan Koseoglu" <hakan.koseoglu@pcmsgroup.com>
> To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
> Cc: <users@subversion.tigris.org>
> Sent: Tuesday, October 19, 2004 4:33 AM
> Subject: Re: BDB vs. FSFS
>
> >> > $ find . -type d -exec rm -rf {} \;
> >>
> >> Aii, this is what happens when you don't read your own commands, what
> >> i meant was of course:
> >>
> >> $ find . -type d -name '.svn' -exec rm -rf {} \;
> >
> > I find this method faster:
> > find . -type d -name '.svn' | xargs rm -rf
>
> I agree. As I recall, using -exec causes a new rm process to
> be started for each rm invoked -- much slower than with xargs.
>
> Also, I would suggest the following:
>
> find . -type d -name '.svn' > foo
>
> take a look inside foo with your favorite editor...
> edit as necessary, JUST to be safe...
>
> cat foo | xargs rm -rf
>
> It's just too easy to get burned with rm -rf.
tr "\n" "\0" < foo | xargs -0 rm -rf
Otherwise Bad Things could happen if you have whitespace in your
directory names.
--
bd
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 19 20:39:31 2004