bug#51921: Anything like ztail

2021-11-17 Thread Stephen Kitt
On Wed, 17 Nov 2021 12:33:33 -0800, Paul Eggert wrote: > On 11/17/21 05:08, Peng Yu wrote: > > Is there a way to make ztail more efficient? > > Not in general, no. The compressed file can't be decompressed from > random locations. > > There might be some options for doing what you're suggesti

bug#51921: Anything like ztail

2021-11-17 Thread Paul Eggert
On 11/17/21 05:08, Peng Yu wrote: Is there a way to make ztail more efficient? Not in general, no. The compressed file can't be decompressed from random locations. There might be some options for doing what you're suggesting if --rsyncable is used during compression (which it usually isn't)

bug#51921: Anything like ztail

2021-11-17 Thread Peng Yu
Hi, Is there a more efficient way to perform ztail. I could use 'zcat f.gz | tail'. But this means that it needs to go through the file until the end. It would be more efficient to just check the end (as `tail f.txt` does it). Is there a way to make ztail more efficient? -- Regards, Peng