bzgrep

Find patterns in bzip2 compressed files using grep. More information: https://manned.org/bzgrep.

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

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

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

bzgrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}

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

bzgrep {{[-r|--recursive]}} "{{search_pattern}}" {{path/to/tar/file}}

cat {{/path/to/bz/compressed/file}} | bzgrep {{[-v|--invert-match]}} "{{search_pattern}}"