OLD | NEW |
(Empty) | |
| 1 .\" |
| 2 .\" Original zgrep.1 for gzip: Jean-loup Gailly |
| 3 .\" Charles Levert <charles@comm.polymtl.ca> |
| 4 .\" |
| 5 .\" Modifications for XZ Utils: Lasse Collin |
| 6 .\" |
| 7 .\" License: GNU GPLv2+ |
| 8 .\" |
| 9 .TH XZGREP 1 "2009-07-05" "Tukaani" "XZ Utils" |
| 10 .SH NAME |
| 11 xzgrep \- search compressed files for a regular expression |
| 12 .SH SYNOPSIS |
| 13 .B xzgrep |
| 14 .RI [ grep_options ] |
| 15 .RB [ \-e ] |
| 16 .I pattern |
| 17 .IR file ".\|.\|." |
| 18 .br |
| 19 .B xzegrep |
| 20 .RB ... |
| 21 .br |
| 22 .B xzfgrep |
| 23 .RB ... |
| 24 .br |
| 25 .B lzgrep |
| 26 .RB ... |
| 27 .br |
| 28 .B lzegrep |
| 29 .RB ... |
| 30 .br |
| 31 .B lzfgrep |
| 32 .RB ... |
| 33 .SH DESCRIPTION |
| 34 .B xzgrep |
| 35 invokes |
| 36 .BR grep (1) |
| 37 on |
| 38 .I files |
| 39 which may be either uncompressed or compressed with |
| 40 .BR xz (1), |
| 41 .BR lzma (1), |
| 42 .BR gzip (1), |
| 43 or |
| 44 .BR bzip2 (1). |
| 45 All options specified are passed directly to |
| 46 .BR grep (1). |
| 47 .PP |
| 48 If no |
| 49 .I file |
| 50 is specified, then the standard input is decompressed if necessary and fed to |
| 51 .BR grep (1). |
| 52 When reading from standard input, |
| 53 .BR gzip (1) |
| 54 and |
| 55 .BR bzip2 (1) |
| 56 compressed files are not supported. |
| 57 .PP |
| 58 If |
| 59 .B xzgrep |
| 60 is invoked as |
| 61 .B xzegrep |
| 62 or |
| 63 .B xzfgrep |
| 64 then |
| 65 .BR egrep (1) |
| 66 or |
| 67 .BR fgrep (1) |
| 68 is used instead of |
| 69 .BR grep (1). |
| 70 The same applies to names |
| 71 .BR lzgrep , |
| 72 .BR lzegrep , |
| 73 and |
| 74 .BR lzfgrep , |
| 75 which are provided for backward compatibility with LZMA Utils. |
| 76 .PP |
| 77 .SH ENVIRONMENT |
| 78 .TP |
| 79 .B GREP |
| 80 If the |
| 81 .B GREP |
| 82 environment variable is set, |
| 83 .B xzgrep |
| 84 uses it instead of |
| 85 .BR grep (1), |
| 86 .BR egrep (1), |
| 87 or |
| 88 .BR fgrep (1). |
| 89 .SH "SEE ALSO" |
| 90 .BR grep (1), |
| 91 .BR xz (1), |
| 92 .BR gzip (1), |
| 93 .BR bzip2 (1), |
| 94 .BR zgrep (1) |
OLD | NEW |