[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: Nathan Kidd <nathan-svn_at_spicycrypto.ca>
Date: 2006-05-02 22:24:52 CEST

Steven Elliott wrote:
> What I am trying to do is take the output of “svn st” and pipe that
> back into “svn add” or “svn del” or...
> I have so far got
> svn st | egrep “\?” | sed ‘s/\?\(.*\)/ \1/’ | svn add
> Problem is the stdout is not making it to the add argument.

You could change that around, and use back-ticks:

svn add `svn st | egrep “\?” | sed ‘s/\?\(.*\)/ \1/’`


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 2 22:26:28 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.