title: grep from tar.gz without extracting [faster one]
body: <p>Am trying to grep pattern from dozen files .tar.gz but its very slow</p>
  
  <p>am using </p>
  
  <pre><code>tar -ztf file.tar.gz | while read FILENAME
  do
          if tar -zxf file.tar.gz "$FILENAME" -O | grep "string" &gt; /dev/null
          then
                  echo "$FILENAME contains string"
          fi
  done
  </code></pre>