Support squeezing empty lines in cat

This commit adds support for squeezing empty lines in cat output.
Line numbers are relative to the actual lines output, as done in
both BSD and GNU coreutils cat variants.