Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

gzgrep (1)

Name

gzgrep - lar expression

Synopsis

gzgrep [ grep_options ] [ -e ] pattern filename...

Description

GZGREP(1)                   General Commands Manual                  GZGREP(1)



NAME
       gzgrep, gzegrep, gzfgrep - search possibly compressed files for a regu-
       lar expression

SYNOPSIS
       gzgrep [ grep_options ] [ -e ] pattern filename...

DESCRIPTION
       The gzgrep command invokes grep on compressed or  gzipped  files.   All
       options  specified  are  passed directly to grep.  If no file is speci-
       fied, then the standard input is decompressed if necessary and  fed  to
       grep.   Otherwise the given files are uncompressed if necessary and fed
       to grep.

       If the GREP environment variable is set, gzgrep uses  it  as  the  grep
       program to be invoked.

EXIT STATUS
       Exit status is 0 for a match, 1 for no matches, and 2 if trouble.

BUGS
       The  following  grep options are not supported: --dereference-recursive
       (-R), --directories  (-d),  --exclude,  --exclude-from,  --exclude-dir,
       --include, --null (-Z), --null-data (-z), and --recursive (-r).

AUTHOR
       Charles Levert (charles@comm.polymtl.ca)


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


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | compress/gzip    |
       +---------------+------------------+
       |Stability      | Committed        |
       +---------------+------------------+

SEE ALSO
       grep(1), gzexe(1), gzip(1), gzdiff(1), gzforce(1), gzmore(1), gznew(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://ftp.gnu.org/gnu/gzip/gzip-1.12.tar.gz.

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



                                                                     GZGREP(1)