How can I tail a zipped file without reading its entire contents?

前端 未结 7 1412
温柔的废话
温柔的废话 2020-12-15 15:35

I want to emulate the functionality of gzcat | tail -n.

This would be helpful for times when there are huge files (of a few GB\'s or so). Can I tail the last few li

7条回答
  •  情书的邮戳
    2020-12-15 15:52

    zindex creates and queries an index on a compressed, line-based text file in a time- and space-efficient way.

    https://github.com/mattgodbolt/zindex

提交回复
热议问题