2009-04-13 13:49:48 +02:00
|
|
|
.\" Original file was take from gzip, thus this man page is under GNU GPLv2+.
|
|
|
|
.TH XZGREP 1 "2009-04-13" "XZ Utils"
|
2007-12-08 23:42:33 +01:00
|
|
|
.SH NAME
|
2009-04-13 13:49:48 +02:00
|
|
|
xzgrep \- search .xz and .lzma 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
|
|
|
|
.IR filename ".\|.\|."
|
|
|
|
.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
|
2007-12-08 23:42:33 +01:00
|
|
|
is used to invoke the
|
|
|
|
.BR grep (1)
|
2009-04-13 13:49:48 +02:00
|
|
|
on .xz or .lzma compressed files. All options specified are passed directly to
|
2007-12-08 23:42:33 +01:00
|
|
|
.BR 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
|
|
|
|
.BR grep .
|
|
|
|
.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
|
|
|
|
.B egrep
|
|
|
|
or
|
|
|
|
.B fgrep
|
|
|
|
is used instead of
|
|
|
|
.B grep.
|
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
|
|
|
If the GREP environment variable is set,
|
2009-04-13 13:49:48 +02:00
|
|
|
.B xzgrep
|
2007-12-08 23:42:33 +01:00
|
|
|
uses it as the
|
|
|
|
.B grep
|
|
|
|
program to be invoked. For example:
|
|
|
|
|
2009-04-13 13:49:48 +02:00
|
|
|
for sh: GREP=fgrep xzgrep string files
|
|
|
|
for csh: (setenv GREP fgrep; xzgrep string files)
|
2007-12-08 23:42:33 +01:00
|
|
|
.SH AUTHORS
|
|
|
|
Original
|
|
|
|
.BR zgrep (1)
|
|
|
|
manual page by Charles Levert <charles@comm.polymtl.ca>.
|
|
|
|
.PP
|
2009-04-13 13:49:48 +02:00
|
|
|
Minor modifications for XZ Utils by Lasse Collin
|
2007-12-08 23:42:33 +01:00
|
|
|
<lasse.collin@tukaani.org>.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR grep (1),
|
|
|
|
.BR egrep (1),
|
|
|
|
.BR fgrep (1),
|
2009-04-13 13:49:48 +02:00
|
|
|
.BR xzdiff (1),
|
|
|
|
.BR xzmore (1),
|
|
|
|
.BR xz (1)
|