The code that estimates n seeks back to the beginning of the input file. This prevents supplying the input from a pipe (e.g. zcat). I suggest adding an option to specify n myself, so the input can come from a pipe. Then supporting reading from stdin would be a natural addition too.
The code that estimates
nseeks back to the beginning of the input file. This prevents supplying the input from a pipe (e.g. zcat). I suggest adding an option to specifynmyself, so the input can come from a pipe. Then supporting reading from stdin would be a natural addition too.