v1.0.0 - Fast Decompression Tail for Compressed Files
First public release of ztail — a GNU-like command-line tool designed for fast access to the last lines of compressed files.
Features
- Supports
.gz,.bgz, and.zipcompressed files. - Reads only the necessary portion of the file to retrieve the last N lines — avoiding full decompression.
- Performance up to 10x faster than
zcat | tailin tests with large files. - Simple CLI interface, compatible with typical
tailusage. - Uses efficient circular buffer implementation for memory management.
Usage example
ztail large_file.gz -n 20Build
mkdir build && cd build
cmake ..
makeNotes
- Requires
zlibandlibzipinstalled on the system. - Tested on Linux (GCC 13.3.0).