This question already has an answer here:
Can somebody help me to figure out a command to find a file recursively that is embedded in a tgz file which is within another tgz files recursively:
My goal is to be able to list
abc.txt without extracting
The command below is only listing the first level of files (i.e.
SubFile.tgz); therefore the grep command cannot find
abc.txt in the list:
tar tvf MainFile.tgz | grep abc