.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. .TH ZGREP "1" "November 2024" "zutils 1.14-rc1" "User Commands" .SH NAME zgrep \- search compressed files for a regular expression .SH SYNOPSIS .B zgrep [\fI\,options\/\fR] \fI\, \/\fR[\fI\,files\/\fR] .SH DESCRIPTION zgrep is a front end to the program grep that allows transparent search on any combination of compressed and uncompressed files. If any file given is compressed, its decompressed content is used. If a file given 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 until one is found. If a file fails to decompress, zgrep continues searching the rest of the files. .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 compressed format. .PP If no files are specified, recursive searches examine the current working directory, and nonrecursive searches read standard input. .PP \&'zgrep \fB\-\-verbose\fR \fB\-V\fR' prints the version of the grep program used. .PP The formats supported are bzip2, gzip, lzip, xz, and zstd. .PP Exit status is 0 if match, 1 if no match, 2 if trouble. Some options only work if the grep program used supports them. .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\-G\fR, \fB\-\-basic\-regexp\fR is a basic regular expression (default) .TP \fB\-h\fR, \fB\-\-no\-filename\fR suppress the prefixing file name on output .TP \fB\-H\fR, \fB\-\-with\-filename\fR print the file name 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\-\-label=\fR