man.bsd.lv manual page server

Manual Page Search Parameters

ZGREP(1) General Commands Manual ZGREP(1)

zgrep, zegrep, zfgrep, bzgrep, bzegrep, bzfgrep, lzgrep, lzegrep, lzfgrep, xzgrep, xzegrep, xzfgrep, zstdgrep, zstdegrep, zstdfgrepgrep compressed files

zgrep [flags] files

zegrep [flags] files

zfgrep [flags] files


bzgrep [flags] files

bzegrep [flags] files

bzfgrep [flags] files


lzgrep [flags] files

lzegrep [flags] files

lzfgrep [flags] files


xzgrep [flags] files

xzegrep [flags] files

xzfgrep [flags] files


zstdgrep [flags] files

zstdegrep [flags] files

zstdfgrep [flags] files

Allow grep(1) to read compressed files.

bzip2(1), grep(1), gzip(1), xz(1), zstd(1)

This version of the zgrep utility was written by Thomas Klausner <wiz@NetBSD.org>.

zgrep(1) does not handle flags that take arguments if there is no whitespace between the flag and the argument, for example:

zgrep -enfs /etc/rpc

When more than one -e flag is used matching should occur for any of the patterns (similar to multiple patterns supplied in a file with the -f flag). zgrep(1) only matches the last -e pattern.

July 20, 2020 FreeBSD-13.0