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

Re: Using svn in a unix pipe

From: Jorge Uriarte <jorge.uriarte_at_omelas.net>
Date: 2006-05-02 23:23:47 CEST

Garrett Rooney wrote:
>>
>> svn st | egrep "\?" | sed 's/\?\(.*\)/ \1/' | svn add
>>
>
> svn st | grep ^\? | awk '{ print $2 }' | xargs svn add
>
> And it works just fine (assuming there aren't any spaces in your
> filenames anyway).
>

I usually use cut for this:

svn add `svn st | grep "^?" | cut c6-500`

I like this contest :-)

_
Jorge

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 2 23:25:12 2006

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.