Find files whose contents match the regular expression, up to 2 directories deep

pt

  • Platinum Searcher.
    A code search tool similar to `ag`.
    More information: <https://github.com/monochromegane/the_platinum_searcher>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

pt --depth={{2}} -e '{{^ba[rz]*$}}'

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