xzgrep

Search files possibly compressed with xz, lzma, gzip, bzip2, lzop, or zstd using regular expressions. See also: grep. More information: https://manned.org/xzgrep.

xzgrep "{{search_pattern}}" {{path/to/file}}

xzgrep {{[-F|--fixed-strings]}} "{{exact_string}}" {{path/to/file}}

xzgrep {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}

xzgrep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}

xzgrep --{{context|before-context|after-context}} {{3}} "{{search_pattern}}" {{path/to/file}}

xzgrep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{search_pattern}}" {{path/to/file}}

xzgrep {{[-o|--only-matching]}} "{{search_pattern}}" {{path/to/file}}