Thanks for that. I am using windows but the tools (sed and xargs) here worked for me:<div><a href="http://gnuwin32.sourceforge.net/">http://gnuwin32.sourceforge.net/</a> </div><div><br></div><div>I was also able to get around the spaces issue (in the standard windows7 shell) by putting the filenames in quotes during my sed command.</div>

<div><br></div><div>Seems to be working fine!</div><div>John<br><br><div class="gmail_quote">On Thu, Aug 2, 2012 at 4:15 PM, Thorsten Glaser <span dir="ltr"><<a href="mailto:t.glaser@tarent.de" target="_blank">t.glaser@tarent.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, 2 Aug 2012, john welford wrote:<br>
<br>
> Is it possible to add a list of files to bzr from the command line either by piping them from a previous<br>
> command (in my case a sed command) or by referencing a text file containing all the file locations? I've<br>
> tried a few things but can't get it working.<br>
<br>
</div>xargs bzr add <file<br>
<br>
But only if your filenames don't contain spaces.<br>
<br>
Otherwise (needs a Korn Shell such as mksh (or its ancestor<br>
pdksh) or ksh93) installed:<br>
<br>
set -A names; while IFS= read -r name; do names[${#names[*]}]=$name; done <file; bzr add "${names[@]}"<br>
<br>
bye,<br>
//mirabilos<br>
<span class="HOEnZb"><font color="#888888">--<br>
tarent solutions GmbH<br>
Rochusstraße 2-4, D-53123 Bonn • <a href="http://www.tarent.de/" target="_blank">http://www.tarent.de/</a><br>
Tel: +49 228 54881-393 • Fax: +49 228 54881-314<br>
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941<br>
Geschäftsführer: Boris Esser, Sebastian Mancke<br>
</font></span></blockquote></div><br></div>