macOS / binaries /

ptargrep

/usr/bin/ptargrep
Apply pattern matching to the contents of files in a tar archive

This utility allows you to apply pattern matching to the contents of files contained in a tar archive. The pattern will be used as a Perl regular expression.

source: man