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 ๐ŸŒˆ

๐Ÿ‘‘ 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