ztgrep
Search for file names and contents through nested archives.
Useful for finding
Supports the following compression formats for both archives and files:
- gzip
- bzip2
- xz (requires xz-utils with
xz
CLI on$PATH
) - zstd (requires zstd with
zstd
CLI on$PATH
) - uncompressed
As well as the following archive formats:
- Tar (V7, USTAR, PAX, GNU, STAR)
- ZIP (with size limitation)
Nested archives and compressed files must have a recognizable file extension to be searched.
Nested ZIP files must be read into memory to be searched. By default, ZIP files larger 10 MB are not searched. The -z
option may be used to specify this size limit.
Usage:
ztgrep [OPTIONS] regexp paths...
Search Options:
-b, --skip-body Skip file bodies
-n, --skip-name Skip file names inside of tarballs
Help Options:
-h, --help Show this help message