Relative Content

Tag Archive for gziptar

How to count lines in tar.gz file without storing decompressed files

I have a number of compressed files (*.tar.gz) in a directory. The file names have the created date in them. Each contains multiple files. I need to know the number of line that contain a specific word in a file with specific naming pattern. Is there a way to do this without uncompressing and storing every file?