Re: Using svn in a unix pipe
From: Saulius Grazulis <grazulis_at_akl.lt>
Date: 2006-05-03 07:37:05 CEST
On Tuesday 02 May 2006 23:17, Steven Elliott wrote:
Unix has 'xargs' command that can "transfer" arguments from the stdin list to
> I have so far got
Try
svn st | egrep "^?" | sed 's/\?\(.*\)/ \1/' | xargs -t svn add
or
svn st | egrep "^?" | sed 's/\?\(.*\)/ \1/' | xargs -t -n1 svn add
(to add files one by one)
This will probably do what you want.
I have also a script 'svn-add-unknown' which uses backticks and awk for this
-- Dr. Saulius Gražulis Visuomeninė organizacija "Atviras Kodas Lietuvai" P.Vileišio g. 18 LT-10306 Vilnius Lietuva (Lithuania) tel/fax: (+370-5)-210 40 05 mobilus: (+370-684)-49802, (+370-614)-36366
---------------------------------------------------------------------
|
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.