ZSTDGREP(1)
๐ ZSTDGREP(1) ๐ โ User Commands โจ
๐ NAME ๐
zstdgrep โ print lines matching a pattern in zstandard-compressed files ๐ธ
๐ฎ SYNOPSIS ๐ฎ
zstdgrep [grep-flags] [--] pattern [files ...]
๐ DESCRIPTION ๐
okay so zstdgrep basically runs grep(1) on your files ๐ฆ If you don't give it any files, it just reads from stdin instead. The big trick is that it decompresses everything first with zstdcat(1), so you never have to unzip anything yourself. iconic behavior, honestly ๐
The grep-flags and pattern arguments get passed straight through to grep(1). Heads up though: if you slip an -e flag into the grep-flags, then zstdgrep stops looking for a pattern argument, because your -e already covers it ๐ง
Real talk, bestie: modern grep alternatives like ripgrep (rg(1)) already support zstd-compressed files out of the box ๐ฅ They can honestly be better picks than zstdgrep, especially when your pattern search gets really complex and unsupported. Just know those alternatives might have a few minor command line differences, so double check before you switch ๐ซถ
๐ฆ EXIT STATUS ๐ฆ
๐ If you're missing arguments or you don't have a pattern, it returns 1. Otherwise it returns 0. Simple as that! ๐
๐ SEE ALSO ๐
zstd(1)โจ
๐ AUTHORS ๐
Thomas Klausner, wiz@NetBSD.org ๐
Manual page for zstd 1.5.6, March 2024, ZSTDGREP(1). Bye bestie, you're literally the best ๐๐ฆโจ
๐ฆ where this page comes from
- alpine 3.22: zstd-doc 1.5.7-r0 ยท BSD-3-Clause OR GPL-2.0-or-later
- alpine 3.23: zstd-doc 1.5.7-r2 ยท BSD-3-Clause OR GPL-2.0-or-later
- alpine 3.24: zstd-doc 1.5.7-r2 ยท BSD-3-Clause OR GPL-2.0-or-later
- debian trixie: zstd 1.5.7+dfsg-1 ยท BSD-3-Clause OR GPL-2.0-only
- opensuse-leap 16.0: zstd 1.5.7-160000.2.2 ยท BSD-3-Clause AND GPL-2.0-only
- opensuse-leap 16.0: zstd 1.5.7-160000.2.2 ยท BSD-3-Clause AND GPL-2.0-only
- opensuse-leap 16.0: zstd 1.5.7-160000.2.2 ยท BSD-3-Clause AND GPL-2.0-only
- opensuse-leap 16.0: zstd 1.5.7-160000.2.2 ยท BSD-3-Clause AND GPL-2.0-only
- ubuntu questing: zstd 1.5.7+dfsg-1build2 ยท BSD-3-Clause OR GPL-2.0-only
- ubuntu resolute: zstd 1.5.7+dfsg-3 ยท BSD-3-Clause OR GPL-2.0-only
- ubuntu stonking: zstd 1.5.7+dfsg-4 ยท BSD-3-Clause OR GPL-2.0-only
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms