Find patterns in
bzip2compressed files usinggrep. More information: https://manned.org/bzgrep.
bzgrep "{{search_pattern}}" {{path/to/file}}
?, +, {}, () and |), in case-insensitive mode: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}}
stdin for lines that do not match a pattern:cat {{/path/to/bz/compressed/file}} | bzgrep {{[-v|--invert-match]}} "{{search_pattern}}"