handler eof on stdin,
better line compression (both stdin, and tail)