.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.8. .TH ZGREP "1" "March 2019" "zgrep (zutils) 1.8" "User Commands" .SH NAME zgrep \- search compressed and uncompressed files .SH SYNOPSIS .B zgrep [\fI\,options\/\fR] \fI\, \/\fR[\fI\,files\/\fR] .SH DESCRIPTION Zgrep is a front end to the grep program that allows transparent search on any combination of compressed and uncompressed files. If any given file is compressed, its decompressed content is used. If a given file does not exist, and its name does not end with one of the known extensions, zgrep tries the compressed file names corresponding to the formats supported. .PP If a file is specified as '\-', data are read from standard input, decompressed if needed, and fed to grep. Data read from standard input must be of the same type; all uncompressed or all in the same compression format. .PP If no files are specified, recursive searches examine the current working directory, and nonrecursive searches read standard input. .PP The formats supported are bzip2, gzip, lzip and xz. .PP Exit status is 0 if match, 1 if no match, 2 if trouble. .SH OPTIONS .TP \fB\-\-help\fR display this help and exit .TP \fB\-V\fR, \fB\-\-version\fR output version information and exit .TP \fB\-a\fR, \fB\-\-text\fR treat all files as text .TP \fB\-A\fR, \fB\-\-after\-context=\fR print lines of trailing context .TP \fB\-b\fR, \fB\-\-byte\-offset\fR print the byte offset of each line .TP \fB\-B\fR, \fB\-\-before\-context=\fR print lines of leading context .TP \fB\-c\fR, \fB\-\-count\fR only print a count of matching lines per file .TP \fB\-C\fR, \fB\-\-context=\fR print lines of output context .TP \fB\-\-color[=\fR] show matched strings in color .TP \fB\-e\fR, \fB\-\-regexp=\fR use as the pattern to match .TP \fB\-E\fR, \fB\-\-extended\-regexp\fR is an extended regular expression .TP \fB\-f\fR, \fB\-\-file=\fR obtain patterns from .TP \fB\-F\fR, \fB\-\-fixed\-strings\fR is a set of newline\-separated strings .TP \fB\-h\fR, \fB\-\-no\-filename\fR suppress the prefixing filename on output .TP \fB\-H\fR, \fB\-\-with\-filename\fR print the filename for each match .TP \fB\-i\fR, \fB\-\-ignore\-case\fR ignore case distinctions .TP \fB\-I\fR ignore binary files .TP \fB\-l\fR, \fB\-\-files\-with\-matches\fR only print names of files containing matches .TP \fB\-L\fR, \fB\-\-files\-without\-match\fR only print names of files containing no matches .TP \fB\-m\fR, \fB\-\-max\-count=\fR stop after matches .TP \fB\-M\fR, \fB\-\-format=\fR process only the formats in .TP \fB\-n\fR, \fB\-\-line\-number\fR print the line number of each line .TP \fB\-N\fR, \fB\-\-no\-rcfile\fR don't read runtime configuration file .TP \fB\-o\fR, \fB\-\-only\-matching\fR show only the part of a line matching .TP \fB\-O\fR, \fB\-\-force\-format=\fR force given format (bz2, gz, lz, xz) .TP \fB\-q\fR, \fB\-\-quiet\fR suppress all messages .TP \fB\-r\fR, \fB\-\-recursive\fR operate recursively on directories .TP \fB\-R\fR, \fB\-\-dereference\-recursive\fR recursively follow symbolic links .TP \fB\-s\fR, \fB\-\-no\-messages\fR suppress error messages .TP \fB\-v\fR, \fB\-\-invert\-match\fR select non\-matching lines .TP \fB\-\-verbose\fR verbose mode (show error messages) .TP \fB\-w\fR, \fB\-\-word\-regexp\fR match only whole words .TP \fB\-x\fR, \fB\-\-line\-regexp\fR match only whole lines .TP \fB\-\-bz2=\fR set compressor and options for bzip2 format .TP \fB\-\-gz=\fR set compressor and options for gzip format .TP \fB\-\-lz=\fR set compressor and options for lzip format .TP \fB\-\-xz=\fR set compressor and options for xz format .PP Numbers may be followed by a multiplier: k = kB = 10^3 = 1000, Ki = KiB = 2^10 = 1024, M = 10^6, Mi = 2^20, G = 10^9, Gi = 2^30, etc... .SH "REPORTING BUGS" Report bugs to zutils\-bug@nongnu.org .br Zutils home page: http://www.nongnu.org/zutils/zutils.html .SH COPYRIGHT Copyright \(co 2019 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH "SEE ALSO" The full documentation for .B zgrep is maintained as a Texinfo manual. If the .B info and .B zgrep programs are properly installed at your site, the command .IP .B info zgrep .PP should give you access to the complete manual.