Grep a pattern in a compressed file (case-insensitive)

zgrep

  • Grep text patterns from files within compressed file (equivalent to grep -Z).
    More information: <https://manned.org/zgrep>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

zgrep -i {{pattern}} {{path/to/compressed/file}}

click the source code to copy install zgrep on any operating system with command-not-found.com