Like the linux tail
command but for gzip compressed files
By default the functionality of -f
is emulated
./ztail ~/test.log.gz
Ctrl+C
- Install Crystal
- Checkout this repo
- Build with:
crystal build --static --release ztail.cr
- Or with docker/podman
docker run --rm -it -v $(pwd):/workspace -w /workspace crystallang/crystal:latest-alpine crystal build --static --release ztail.cr
- High CPU usage as it needs to re-read the gzip file in every iteration (this is because plain gzip do not support random access)