Thanks, Rob -
After years and years of ignoring Pipes, I decided this week I was going to
learn how to use them.  I found some excellent documentation, thanks to you
and others, and have dived head first into the pool.  But even with the
Authors Edition, and Pipelines Visualized, I'm still struggling with
multi-stream plumbing.  I just need more practice and see good examples.

On Fri, Jul 9, 2010 at 10:03 AM, Rob van der Heij <[email protected]> wrote:

> On Fri, Jul 9, 2010 at 3:25 PM, Mark Pace <[email protected]> wrote:
>
> > and it does not create the file.  change it to console and it works
> again.
> > Am I missing something obvious?
>
> As Alan points out, you need to append rather than replace the file.
> But since it is Friday, you might learn a bit of mult-stream plumbing
> instead...  Rather than calling the pipeline in a loop, you could make
> a single pipe do all the files:
>
> 'PIPE (end \)',
>   '\  stem files.',
>   '| o: fanout',
>   '| pad 25',
>   '| j: juxtapose',
>   '| > test data a',
>   '\ o:',
>   '| getfiles',
>   '| locate anycase /'LookFor'/',
>   '| j:'
>
> Depending on the number of files you're handling, you might even
> notice the speedup. But more important is that it makes it much easier
> to extend the process and do other things with the data.
>
> Rob
>



-- 
Mark Pace
Mainline Information Systems
1700 Summit Lake Drive
Tallahassee, FL. 32317

Reply via email to