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

Using svn in a unix pipe

From: Steven Elliott <steven.s.elliott_at_gmail.com>
Date: 2006-05-02 22:17:57 CEST

I realize that not all command line commands can be used in a unix pipe.

But it would really help me not only satisfy an itch but help in my
development process if someone here more knowledgeable in unix could give me
a hint.

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

So svn is outputting to egrep which is taking all the files marked ³?² and
sending that to sed to strip off the ³?² (which could be ³!² ..etc) which I
would then like to send to svn add (or delete or...).

Problem is the stdout is not making it to the add argument.

Any help would be appreciated.

Steven

  • application/pkcs7-signature attachment: stored
Received on Tue May 2 22:19:20 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.