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 --ignore-case "search_pattern" path/to/file
zegrep --invert-match "search_pattern" path/to/file
zegrep --with-filename --line-number "search_pattern" path/to/file
zegrep --only-matching "search_pattern" path/to/file
zegrep --recursive "search_pattern" path/to/file