zless

View gzip and xz compressed files. More information: https://manned.org/zless.

zless file.txt.gz