title: Pinpoint archive file from a list of archive files where the target file is zipped
body: <p>I have a directory structure like this -</p>
  
  <pre><code>./Archive1
  ./Archive1/Archive2
  ./Archive1/Archive3
  </code></pre>
  
  <p>In each directory there are many <code>tar</code> files. Say for example (don't go with the name, they are just for example) -</p>
  
  <pre><code>Archive1
  ├── Archive2
  │   ├── tenth.tar.gz
  │   └── third.tar.gz
  ├── Archive3
  │   ├── fourth.tar.gz
  │   └── sixth.tar.gz
  ├── fifth.tar.gz
  ├── first.tar.gz
  └── second.tar.gz
  </code></pre>
  
  <p>Now I have a file <code>file.txt</code>, that could reside in any tar file. I need a command that would give me the output as which tar file have my input file (<code>file.txt</code>) and also the absolute path of the tar file.</p>
  
  <p>So for example if <code>test.txt</code> is in <code>sixth.tar.gz</code>. The output will be <code>sixth.tar.gz</code> and <code>./Archive1/Archive3/</code></p>
  
  <p>Currently I have this command, but the drawback of the command is, it is listing all the tar files -</p>
  
  <pre><code>find . -maxdepth "3" -type f -name "*.tar.gz" -printf [%f]\\n -exec tar -tf {} \; | grep -iE "[\[]|file.txt"
  </code></pre>