3 ms·
This is difficult if the input is a nonseekable stream, but that doesn't excuse producing bad output.
by tedunangst 9y ago
This is difficult if the input is a nonseekable stream, but that doesn't excuse producing bad output.
- tptacek 9y agoThat's why I didn't suggest it, but to be fair, you could tee the stream into an intermediate file for a two-pass scheme.