1XZGREP(1)                          XZ Utils                          XZGREP(1)
2
3
4

NAME

6       xzgrep - search compressed files for a regular expression
7

SYNOPSIS

9       xzgrep [grep_options] [-e] pattern [file...]
10       xzegrep ...
11       xzfgrep ...
12       lzgrep ...
13       lzegrep ...
14       lzfgrep ...
15

DESCRIPTION

17       xzgrep  invokes  grep(1)  on  files which may be either uncompressed or
18       compressed with xz(1), lzma(1), gzip(1), bzip2(1), lzop(1), or zstd(1).
19       All options specified are passed directly to grep(1).
20
21       If  no file is specified, then standard input is decompressed if necesā€
22       sary and fed to grep(1).  When reading from  standard  input,  gzip(1),
23       bzip2(1), lzop(1), and zstd(1) compressed files are not supported.
24
25       If  xzgrep  is invoked as xzegrep or xzfgrep then grep -E or grep -F is
26       used instead of grep(1).  The same applies to  names  lzgrep,  lzegrep,
27       and  lzfgrep,  which  are provided for backward compatibility with LZMA
28       Utils.
29

EXIT STATUS

31       0      At least one match was found from at  least  one  of  the  input
32              files.  No errors occurred.
33
34       1      No  matches  were  found from any of the input files.  No errors
35              occurred.
36
37       >1     One or more errors occurred.  It  is  unknown  if  matches  were
38              found.
39

ENVIRONMENT

41       GREP   If  the GREP environment variable is set, xzgrep uses it instead
42              of grep(1), grep -E, or grep -F.
43

SEE ALSO

45       grep(1), xz(1), gzip(1), bzip2(1), lzop(1), zstd(1), zgrep(1)
46
47
48
49Tukaani                           2022-07-19                         XZGREP(1)
Impressum