Search for lines that do not match a pattern

bzegrep

  • Find extended regular expression patterns in bzip2 compressed files using egrep.
    More information: <https://manned.org/bzegrep>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

bzegrep --invert-match "{{search_pattern}}" {{path/to/file}}

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