Linux Commands Examples

A great documentation place for Linux commands

xzegrep

search compressed files for a regular expression


see also : grep - xz - gzip - bzip2 - zgrep

Synopsis

xzgrep [grep_options] [-e] pattern file...
xzegrep
...
xzfgrep
...
lzgrep
...
lzegrep
...
lzfgrep
...


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

description

xzgrep invokes grep(1) on files which may be either uncompressed or compressed with xz(1), lzma(1), gzip(1), bzip2(1), or lzop(1). All options specified are passed directly to grep(1).

If no file is specified, then standard input is decompressed if necessary and fed to grep(1). When reading from standard input, gzip(1), bzip2(1), and lzop(1) compressed files are not supported.

If xzgrep is invoked as xzegrep or xzfgrep then egrep(1) or fgrep(1) is used instead of grep(1). The same applies to names lzgrep, lzegrep, and lzfgrep, which are provided for backward compatibility with LZMA Utils.

environment

grep

If the GREP environment variable is set, xzgrep uses it instead of grep(1), egrep(1), or fgrep(1).


see also

grep , xz , gzip , bzip2 , lzop, zgrep

How can this site be more helpful to YOU ?


give  feedback