Find extended regular expression patterns in compressed files using
egrep. More information: https://www.unix.com/man-page/freebsd/1/zegrep/.
?, +, {}, () and |) in a compressed file (case-sensitive):zegrep "{{search_pattern}}" {{path/to/file}}
?, +, {}, () and |) in a compressed file (case-insensitive):zegrep {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}
zegrep {{[-v|--invert-match]}} "{{search_pattern}}" {{path/to/file}}
zegrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}
zegrep {{[-o|--only-matching]}} "{{search_pattern}}" {{path/to/file}}
zegrep {{[-r|--recursive]}} "{{search_pattern}}" {{path/to/file}}