Search possibly compressed files with xz, lzma, gzip, bzip2, lzop,…
Search possibly compressed files with xz, lzma, gzip, bzip2, lzop, or zstd for regular expressions. See also:
grep
. More information: https://manned.org/xzgrep.1.
xzgrep "{{search_pattern}}" {{path/to/compressed/file}}
xzgrep --fixed-strings "{{exact_string}}" {{path/to/compressed/file}}
xzgrep --line-number "{{search_pattern}}" {{path/to/compressed/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}}