Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

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
       Gzgrep invokes grep on compressed or gzipped files.  All options speci-
       fied  are  passed  directly to grep.  If no file is specified, 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)

SEE ALSO
       grep(1), gzexe(1), gzip(1), gzdiff(1), gzforce(1), gzmore(1), gznew(1)



                                                                     GZGREP(1)