@Shmuel wrote:
@Tom's solution seems very neat, but testing it I have the feeling it misses the last input record.
...
Since it wrties each line as it reads it there is no way it misses any lines. It might not write an end of line for the last record, if it did not have enough pipe characters.
... View more