2009-07-05 21:25:17 +02:00
|
|
|
.\"
|
|
|
|
.\" Original zgrep.1 for gzip: Jean-loup Gailly
|
|
|
|
.\" Charles Levert <charles@comm.polymtl.ca>
|
|
|
|
.\"
|
|
|
|
.\" Modifications for XZ Utils: Lasse Collin
|
|
|
|
.\"
|
|
|
|
.\" License: GNU GPLv2+
|
|
|
|
.\"
|
|
|
|
.TH XZGREP 1 "2009-07-05" "Tukaani" "XZ Utils"
|
2007-12-08 23:42:33 +01:00
|
|
|
.SH NAME
|
2009-07-05 21:25:17 +02:00
|
|
|
xzgrep \- search compressed files for a regular expression
|
2007-12-08 23:42:33 +01:00
|
|
|
.SH SYNOPSIS
|
2009-04-13 13:49:48 +02:00
|
|
|
.B xzgrep
|
2007-12-08 23:42:33 +01:00
|
|
|
.RI [ grep_options ]
|
|
|
|
.RB [ \-e ]
|
|
|
|
.I pattern
|
2009-07-05 21:25:17 +02:00
|
|
|
.IR file ".\|.\|."
|
2007-12-08 23:42:33 +01:00
|
|
|
.br
|
2009-04-13 13:49:48 +02:00
|
|
|
.B xzegrep
|
|
|
|
.RB ...
|
|
|
|
.br
|
|
|
|
.B xzfgrep
|
|
|
|
.RB ...
|
|
|
|
.br
|
|
|
|
.B lzgrep
|
|
|
|
.RB ...
|
|
|
|
.br
|
2007-12-08 23:42:33 +01:00
|
|
|
.B lzegrep
|
|
|
|
.RB ...
|
|
|
|
.br
|
|
|
|
.B lzfgrep
|
|
|
|
.RB ...
|
|
|
|
.SH DESCRIPTION
|
2009-04-13 13:49:48 +02:00
|
|
|
.B xzgrep
|
2009-07-05 21:25:17 +02:00
|
|
|
invokes
|
2007-12-08 23:42:33 +01:00
|
|
|
.BR grep (1)
|
2009-07-05 21:25:17 +02:00
|
|
|
on
|
|
|
|
.I files
|
|
|
|
which may be either uncompressed or compressed with
|
|
|
|
.BR xz (1),
|
|
|
|
.BR lzma (1),
|
|
|
|
.BR gzip (1),
|
|
|
|
or
|
|
|
|
.BR bzip2 (1).
|
|
|
|
All options specified are passed directly to
|
|
|
|
.BR grep (1).
|
|
|
|
.PP
|
|
|
|
If no
|
|
|
|
.I file
|
|
|
|
is specified, then the standard input is decompressed if necessary and fed to
|
|
|
|
.BR grep (1).
|
|
|
|
When reading from standard input,
|
|
|
|
.BR gzip (1)
|
|
|
|
and
|
|
|
|
.BR bzip2 (1)
|
|
|
|
compressed files are not supported.
|
2007-12-08 23:42:33 +01:00
|
|
|
.PP
|
|
|
|
If
|
2009-04-13 13:49:48 +02:00
|
|
|
.B xzgrep
|
2007-12-08 23:42:33 +01:00
|
|
|
is invoked as
|
2009-04-13 13:49:48 +02:00
|
|
|
.B xzegrep
|
2007-12-08 23:42:33 +01:00
|
|
|
or
|
2009-04-13 13:49:48 +02:00
|
|
|
.B xzfgrep
|
2007-12-08 23:42:33 +01:00
|
|
|
then
|
2009-07-05 21:25:17 +02:00
|
|
|
.BR egrep (1)
|
2007-12-08 23:42:33 +01:00
|
|
|
or
|
2009-07-05 21:25:17 +02:00
|
|
|
.BR fgrep (1)
|
2007-12-08 23:42:33 +01:00
|
|
|
is used instead of
|
2009-07-05 21:25:17 +02:00
|
|
|
.BR grep (1).
|
2009-04-13 13:49:48 +02:00
|
|
|
The same applies to names
|
|
|
|
.BR lzgrep ,
|
|
|
|
.BR lzegrep ,
|
|
|
|
and
|
|
|
|
.BR lzfgrep ,
|
|
|
|
which are provided for backward compatibility with LZMA Utils.
|
2007-12-08 23:42:33 +01:00
|
|
|
.PP
|
2009-07-05 21:25:17 +02:00
|
|
|
.SH ENVIRONMENT
|
|
|
|
.TP
|
|
|
|
.B GREP
|
|
|
|
If the
|
|
|
|
.B GREP
|
|
|
|
environment variable is set,
|
|
|
|
.B xzgrep
|
|
|
|
uses it instead of
|
2007-12-08 23:42:33 +01:00
|
|
|
.BR grep (1),
|
|
|
|
.BR egrep (1),
|
2009-07-05 21:25:17 +02:00
|
|
|
or
|
|
|
|
.BR fgrep (1).
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR grep (1),
|
|
|
|
.BR xz (1),
|
|
|
|
.BR gzip (1),
|
|
|
|
.BR bzip2 (1),
|
|
|
|
.BR zgrep (1)
|