ptargrep

Find regular expression patterns in tar archive files. More information: https://manned.org/ptargrep.

ptargrep "search_pattern" path/to/file1 path/to/file2 ...

ptargrep --basename "search_pattern" path/to/file

ptargrep --ignore-case "search_pattern" path/to/file