Search the contents of compressed gzip archive file - LinuxConfig.org

One way how to search the content of a gzip archive file is to pipe the list of all files the gzip archive includes to grep. Consider a following example. First we create some dummy archive containing 10 text files.
This is a companion discussion topic for the original entry at https://linuxconfig.org/search-the-contents-of-compressed-gzip-archive-file