callpipe *:|pick to 1-* == /./|...

On 10 July 2010 04:39, Bob Cronin <[email protected]> wrote:
> A BSMTP mail file can contain multiple emails separated by lines that
> consist of a single dot. I need to extract the individual emails into their
> own files. I wrote a pure Rexx filter to do it which works, but is
> excruciatingly slow for large inputs as it goes line by line through the
> input deciding whether to start a new output file or not and then append the
> line to the appropriate file (you know, peekto, look at the input line,
> check for the single dot, append it to the current file if not, else start a
> new file and write it there, readto, rinse, repeat. It concocts output
> filenames on-the-fly and writes them to the primary output (which I then
> dump into a stem for subsequent processing).
>
> I clearly need a more PipeThink oriented approach. This is just too brute
> force. Any ideas?
> --
> bc
>

Reply via email to