1XZGREP(1) XZ Utils XZGREP(1) 2 3 4 5NAME 6 xzgrep - search compressed files for a regular expression 7 8SYNOPSIS 9 xzgrep [grep_options] [-e] pattern file... 10 xzegrep ... 11 xzfgrep ... 12 lzgrep ... 13 lzegrep ... 14 lzfgrep ... 15 16DESCRIPTION 17 xzgrep invokes grep(1) on files which may be either uncompressed or 18 compressed with xz(1), lzma(1), gzip(1), or bzip2(1). All options 19 specified are passed directly to grep(1). 20 21 If no file is specified, then standard input is decompressed if neces- 22 sary and fed to grep(1). When reading from standard input, gzip(1) and 23 bzip2(1) compressed files are not supported. 24 25 If xzgrep is invoked as xzegrep or xzfgrep then egrep(1) or fgrep(1) is 26 used instead of grep(1). The same applies to names lzgrep, lzegrep, 27 and lzfgrep, which are provided for backward compatibility with LZMA 28 Utils. 29 30ENVIRONMENT 31 GREP If the GREP environment variable is set, xzgrep uses it instead 32 of grep(1), egrep(1), or fgrep(1). 33 34SEE ALSO 35 grep(1), xz(1), gzip(1), bzip2(1), zgrep(1) 36 37 38 39Tukaani 2010-09-27 XZGREP(1) 40