title: How to get diff between two tar.gz
body: <p>I have two archive 1.tar.gz (containing hello.txt) and 2.tar.gz (containing hello.txt and helloworld.txt).</p>
  
  <p>I would get the diff between this two tar.gz. The output should be helloworld.txt.</p>
  
  <p>I've tried with tis command :</p>
  
  <pre><code>diff &lt;(tar -tvf 1.tar.gz | sort) &lt;(tar -tvf 2.tar.gz | sort) 
  </code></pre>
  
  <p>but the output was wrong. I've got this result :</p>
  
  <pre><code>&lt; drwxr-xr-x user/user         0 2016-12-09 23:29 1/
  &lt; -rw-r--r-- user/user       344 2016-12-09 23:29 1/hello.txt.gpg
  ---
  &gt; drwxr-xr-x user/user         0 2016-12-09 23:27 2/
  &gt; -rw-r--r-- user/user       344 2016-12-09 23:27 2/hello.txt.gpg
  &gt; -rw-r--r-- user/user       363 2016-12-09 23:27 2/helloworld.txt.gpg
  </code></pre>