zgrep.1 (zutils-1.8.tar.lz) | : | zgrep.1 (zutils-1.9.tar.lz) | ||
---|---|---|---|---|
ZGREP(1) User Commands ZGREP(1) | ZGREP(1) User Commands ZGREP(1) | |||
NAME | NAME | |||
zgrep - search compressed files for a regular expression | zgrep - search compressed files for a regular expression | |||
SYNOPSIS | SYNOPSIS | |||
zgrep [options] <pattern> [files] | zgrep [options] <pattern> [files] | |||
DESCRIPTION | DESCRIPTION | |||
Zgrep is a front end to the grep program that allows transparent search o | zgrep is a front end to the program grep that allows transparent search o | |||
n any combination of compressed | n any combination of compressed | |||
and uncompressed files. If any given file is compressed, its decompressed | and uncompressed files. If any file given is compressed, its decompressed | |||
content is used. If a given | content is used. If a file | |||
file does not exist, and its name does not end with one of the known e | given does not exist, and its name does not end with one of the known e | |||
xtensions, zgrep tries the com- | xtensions, zgrep tries the com- | |||
pressed file names corresponding to the formats supported. | pressed file names corresponding to the formats supported. If a file fail | |||
s to decompress, zgrep contin- | ||||
If a file is specified as '-', data are read from standard input, decompr | ues searching the rest of the files. | |||
essed if needed, and fed to | ||||
grep. Data read from standard input must be of the same type; all uncom | If a file is specified as '-', data are read from standard input, dec | |||
pressed or all in the same com- | ompressed if needed, and fed to | |||
pression format. | grep. Data read from standard input must be of the same type; all uncompr | |||
essed or all in the same com- | ||||
pressed format. | ||||
If no files are specified, recursive searches examine the current working directory, and nonrecursive | If no files are specified, recursive searches examine the current work ing directory, and nonrecursive | |||
searches read standard input. | searches read standard input. | |||
The formats supported are bzip2, gzip, lzip and xz. | The formats supported are bzip2, gzip, lzip, and xz. | |||
Exit status is 0 if match, 1 if no match, 2 if trouble. | Exit status is 0 if match, 1 if no match, 2 if trouble. Some options onl | |||
y work if the grep program used | ||||
supports them. | ||||
OPTIONS | OPTIONS | |||
--help display this help and exit | --help display this help and exit | |||
-V, --version | -V, --version | |||
output version information and exit | output version information and exit | |||
-a, --text | -a, --text | |||
treat all files as text | treat all files as text | |||
skipping to change at line 98 | skipping to change at line 100 | |||
-n, --line-number | -n, --line-number | |||
print the line number of each line | print the line number of each line | |||
-N, --no-rcfile | -N, --no-rcfile | |||
don't read runtime configuration file | don't read runtime configuration file | |||
-o, --only-matching | -o, --only-matching | |||
show only the part of a line matching <pattern> | show only the part of a line matching <pattern> | |||
-O, --force-format=<fmt> | -O, --force-format=<fmt> | |||
force given format (bz2, gz, lz, xz) | force the format given (bz2, gz, lz, xz) | |||
-q, --quiet | -q, --quiet | |||
suppress all messages | suppress all messages | |||
-r, --recursive | -r, --recursive | |||
operate recursively on directories | operate recursively on directories | |||
-R, --dereference-recursive | -R, --dereference-recursive | |||
recursively follow symbolic links | recursively follow symbolic links | |||
skipping to change at line 144 | skipping to change at line 146 | |||
set compressor and options for xz format | set compressor and options for xz format | |||
Numbers may be followed by a multiplier: k = kB = 10^3 = 1000, Ki = Ki B = 2^10 = 1024, M = 10^6, Mi = | Numbers may be followed by a multiplier: k = kB = 10^3 = 1000, Ki = Ki B = 2^10 = 1024, M = 10^6, Mi = | |||
2^20, G = 10^9, Gi = 2^30, etc... | 2^20, G = 10^9, Gi = 2^30, etc... | |||
REPORTING BUGS | REPORTING BUGS | |||
Report bugs to zutils-bug@nongnu.org | Report bugs to zutils-bug@nongnu.org | |||
Zutils home page: http://www.nongnu.org/zutils/zutils.html | Zutils home page: http://www.nongnu.org/zutils/zutils.html | |||
COPYRIGHT | COPYRIGHT | |||
Copyright © 2019 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later | Copyright © 2020 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later | |||
<http://gnu.org/licenses/gpl.html> | <http://gnu.org/licenses/gpl.html> | |||
This is free software: you are free to change and redistribute it. Ther e is NO WARRANTY, to the extent | This is free software: you are free to change and redistribute it. Ther e is NO WARRANTY, to the extent | |||
permitted by law. | permitted by law. | |||
zgrep (zutils) 1.8 January 2019 ZGREP(1) | zgrep (zutils) 1.9 June 2020 ZGREP(1) | |||
End of changes. 7 change blocks. | ||||
18 lines changed or deleted | 22 lines changed or added |