Hi, I am not sure how to define this problem, but it sure LOOKS like something I should be able to do in pipes.
Given: a data file, starting with a 'delimiter line', and with more of them distributed (in no known placement) throughout the data (but NOT as a final delimiter at the end of the file). Requirement: read the file, up to, but NOT including the second delimiter line (remember, the very first line of the file is also one), store those lines in a temporary file, and invoke an exec against that file. Then continue reading from the 2nd delimiter line, up to but not including the third one, store, run exec, etc. until EOF. I had considered a pipe with a DROP 1, followed by TOLABEL, with both feeding to one FANINANY which would write the file and execute, but I don't see how to get this behavior to loop. Thank you, Shimon