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

RE: Svn add question

From: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2007-10-04 22:59:26 CEST

> -----Original Message-----
> From: Andy Levy [mailto:andy.levy@gmail.com]
> Sent: Thursday, October 04, 2007 2:29 PM
> To: Subversion List
> Subject: Re: Svn add question
>
> On 10/4/07, Reuben Avery <reuben@swirl.net> wrote:
> > Hmm.. This script sure looks complicated.
> >
> > Isn't there a nifty Unix way to use grep to do this?
> >
> > For example, I can delete results of a find command by using -exec
ala
> > find . -name "Thumbs.db" -exec rm {} \;
> >
> > But I cannot figure out how to do the same through grep.. it would
look
> > something like this conceptually:
> > svn status | grep "^A" -exec svn del {} \;
> >
> > My unix hacker skills are rather limited, I am afraid..

svn st | grep '^?' | xargs svn add

etc. But yeah, just use the script.

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 4 22:59:59 2007

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.