• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Announcing RemoveSVN
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Announcing RemoveSVN


  • Subject: Re: Announcing RemoveSVN
  • From: "David Symonds" <email@hidden>
  • Date: Mon, 5 Nov 2007 23:05:42 +1100

On 11/5/07, Johan Claesson <email@hidden> wrote:
> Once upon a time Chris Woods wrote:
> >
> > In general, xargs is more efficient anyway. With the -exec option
> > passed to find, you're performing the command you're passing to exec
> > anew with each result that find turns up. When you use xargs, you're
> > building up the argument list using find, passing it en masse to
> > xargs, which then passes the list en masse to whatever you're doing
> > with the argument list, in this case 'rm'.
>
> This is rather OT, but xargs won't work if you have file or directory
> names with spaces in them.

It will if you pass -print0 to find, and pass -0 to xargs:

    find /path/to/folder -name '.svn' -print0 | xargs -0 rm -r



Dave.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Announcing RemoveSVN (From: Sam Stigler <email@hidden>)
 >Re: Announcing RemoveSVN (From: Sherm Pendley <email@hidden>)
 >Re: Announcing RemoveSVN (From: "Johan Claesson" <email@hidden>)
 >Re: Announcing RemoveSVN (From: Chris Woods <email@hidden>)
 >Re: Announcing RemoveSVN (From: "Johan Claesson" <email@hidden>)

  • Prev by Date: Re: Announcing RemoveSVN
  • Next by Date: Opening bookmarked html page problem
  • Previous by thread: Re: Announcing RemoveSVN
  • Next by thread: Re: Announcing RemoveSVN
  • Index(es):
    • Date
    • Thread