COHERENT help

This page displays the COHERENT help information for zgrep.

Listing of available help pages


zgrep -- Search compressed files for a regular expression

zgrep [-abcefhilnsvxy] [pattern] [file ...]

Options:
     -a        Extra metacharacters supported (`(...)', `|', `+', and `?')
     -b        Each output line has block number of match
     -c        Print only count of matching lines
     -e        Next argument is pattern
     -f        Next argument is file containing one pattern per line
     -h        Suppress printing of file names on matched lines
     -i        Ignore case when matching letters in pattern
     -l        Print only names of files containing matches
     -n        Print line number of file with each matched line output
     -s        Suppress output, just return status
     -v        Negate sense of match
     -x        Exact match (don't expand metacharacters)
     -y        Lower-case letters in pattern match only upper-case

The pattern is a regular expression roughly like that found in ed.  If no file
is specified, stdin is read.