zrun
Run commands on gzip-compressed files
TLDR
Run command on compressed file
SYNOPSIS
zrun command [arguments]
DESCRIPTION
zrun automatically decompresses gzip-compressed file arguments before passing them to the specified command. It creates temporary decompressed files, runs the command, then cleans up.
This is useful for running commands that don't natively support compressed input on gzipped files without manual decompression steps.
The tool detects which arguments are gzip-compressed files (by .gz extension) and decompresses only those, passing other arguments unchanged.
After the command completes, temporary files are automatically removed.
CAVEATS
Only handles gzip (.gz) compression. Other formats (bzip2, xz, zstd) are not supported.
Large compressed files require temporary disk space for decompression.
The command sees different (temporary) filenames than the originals, which may matter for some tools.
For commands with native gzip support (like zcat, zgrep, zless), use those directly instead for better performance.
