Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

xzgrep (1)

Name

xzgrep - search compressed files for a regular expression

Synopsis

xzgrep [grep_options] [-e] pattern file...
xzegrep ...
xzfgrep ...
lzgrep ...
lzegrep ...
lzfgrep ...

Description

XZGREP(1)                          XZ Utils                          XZGREP(1)



NAME
       xzgrep - search compressed files for a regular expression

SYNOPSIS
       xzgrep [grep_options] [-e] pattern file...
       xzegrep ...
       xzfgrep ...
       lzgrep ...
       lzegrep ...
       lzfgrep ...

DESCRIPTION
       xzgrep  invokes  grep(1)  on  files which may be either uncompressed or
       compressed with xz(1), lzma(1), gzip(1),  bzip2(1),  or  lzop(1).   All
       options specified are passed directly to grep(1).

       If  no file is specified, then standard input is decompressed if neces-
       sary and fed to grep(1).  When reading from  standard  input,  gzip(1),
       bzip2(1), and lzop(1) compressed files are not supported.

       If xzgrep is invoked as xzegrep or xzfgrep then egrep(1) or fgrep(1) is
       used instead of grep(1).  The same applies to  names  lzgrep,  lzegrep,
       and  lzfgrep,  which  are provided for backward compatibility with LZMA
       Utils.

ENVIRONMENT
       GREP   If the GREP environment variable is set, xzgrep uses it  instead
              of grep(1), egrep(1), or fgrep(1).


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | compress/xz      |
       +---------------+------------------+
       |Stability      | Uncommitted      |
       +---------------+------------------+

SEE ALSO
       grep(1), xz(1), gzip(1), bzip2(1), lzop(1), zgrep(1)



NOTES
       Source  code  for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source was downloaded from  https://tukaani.org/xz/xz-5.2.5.tar.gz.

       Further information about this software can be found on the open source
       community website at https://tukaani.org/xz/.



Tukaani                           2011-03-19                         XZGREP(1)