Search files possibly compressed with
xz,lzma,gzip,bzip2,lzop, orzstdusing regular expressions. See also:grep. More information: https://manned.org/xzgrep.
xzgrep "search_pattern" path/to/file
xzgrep --fixed-strings "exact_string" path/to/file
xzgrep --line-number "search_pattern" path/to/file
?, +, {}, () and |), in case-insensitive mode:xzgrep --extended-regexp --ignore-case "search_pattern" path/to/file
xzgrep --context|before-context|after-context=3 "search_pattern" path/to/file
xzgrep --with-filename --line-number --color=always "search_pattern" path/to/file
xzgrep --only-matching "search_pattern" path/to/file