xzgrep - search compressed files for a regular expression
xzgrep [grep_options] [-e] pattern
If no file is specified, then standard input is decompressed if necessary and fed to grep(1). When reading from standard input, gzip(1), bzip2(1), lzop(1), and zstd(1) compressed files are not supported.
If xzgrep is invoked as xzegrep or xzfgrep then grep -E or grep -F is used instead of grep(1). The same applies to names lzgrep, lzegrep, and lzfgrep, which are provided for backward compatibility with LZMA Utils.
- At least one match was found from at least one of the input files. No errors occurred.
- No matches were found from any of the input files. No errors occurred.
- One or more errors occurred. It is unknown if matches were found.
- If the GREP environment variable is set, xzgrep uses it instead of grep(1), grep -E, or grep -F.
grep(1), xz(1), gzip(1), bzip2(1), lzop(1), zstd(1), zgrep(1)