XZGREP(1) | XZ Utils | XZGREP(1) |
xzgrep - search possibly-compressed files for patterns
xzgrep [option...] [pattern_list]
[file...]
xzegrep ...
xzfgrep ...
lzgrep ...
lzegrep ...
lzfgrep ...
xzgrep invokes grep(1) on uncompressed contents of files. The formats of the files are determined from the filename suffixes. Any file with a suffix supported by xz(1), gzip(1), bzip2(1), lzop(1), zstd(1), or lz4(1) will be decompressed; all other files are assumed to be uncompressed.
If no files are specified or file is - then standard input is read. When reading from standard input, only files supported by xz(1) are decompressed. Other files are assumed to be in uncompressed form already.
Most options of grep(1) are supported. However, the following options are not supported:
xzegrep is an alias for xzgrep -E. xzfgrep is an alias for xzgrep -F.
The commands lzgrep, lzegrep, and lzfgrep are provided for backward compatibility with LZMA Utils.
grep(1), xz(1), gzip(1), bzip2(1), lzop(1), zstd(1), lz4(1), zgrep(1)
2024-02-13 | Tukaani |