1. NAME

xzgrep - search compressed files for a regular expression

2. SYNOPSIS

xzgrep [ grep_options ] [ -e ] pattern file "..."

xzegrep ...

xzfgrep ...

lzgrep ...

lzegrep ...

lzfgrep ...

3. DESCRIPTION

xzgrep invokes

R grep (1) on fileswhich may be either uncompressed or compressed with

R xz (1),

R lzma (1),

R gzip (1), or

R bzip2 (1). All options specified are passed directly to

R grep (1).

If no fileis specified, then standard input is decompressed if necessary and fed to

R grep (1). When reading from standard input,

R gzip (1) and

R bzip2 (1) compressed files are not supported.

If

xzgrep is invoked as

xzegrep or

xzfgrep then

R egrep (1) or

R fgrep (1) is used instead of

R grep (1). The same applies to names

R lzgrep ,

R lzegrep , and

R lzfgrep , which are provided for backward compatibility with LZMA Utils.

4. ENVIRONMENT

GREP

    If the

GREP environment variable is set,

xzgrep uses it instead of

R grep (1),

R egrep (1), or

R fgrep (1).

5. SEE ALSO

R grep (1),

R xz (1),

R gzip (1),

R bzip2 (1),

R zgrep (1)