1ZSTDGREP(1) User Commands ZSTDGREP(1)
2
3
4
6 zstdgrep - print lines matching a pattern in zstandard-compressed files
7
9 zstdgrep [grep-flags] [--] pattern [files ...]
10
12 zstdgrep runs grep(1) on files, or stdin if no files argument is given,
13 after decompressing them with zstdcat(1).
14
15 The grep-flags and pattern arguments are passed on to grep(1). If an -e
16 flag is found in the grep-flags, zstdgrep will not look for a pattern
17 argument.
18
19 Note that modern grep alternatives such as ripgrep (rg(1)) support
20 zstd-compressed files out of the box, and can prove better alternatives
21 than zstdgrep notably for unsupported complex pattern searches. Note
22 though that such alternatives may also feature some minor command line
23 differences.
24
26 In case of missing arguments or missing pattern, 1 will be returned,
27 otherwise 0.
28
30 zstd(1)
31
33 Thomas Klausner wiz@NetBSD.org
34
35
36
37zstd 1.5.5 March 2023 ZSTDGREP(1)