title: combining gunzip and tar commands in Solaris and AIX
body: <p>I am running the below command to untar a file in Solaris and AIX:</p>
  
  <pre><code># gunzip /opt/myfile.tar.gz | tar -xvf-
  </code></pre>
  
  <p>but I'm getting this error:</p>
  
  <pre><code>tar: Unexpected end-of-file while reading from the storage media.
  </code></pre>
  
  <p>What do I need to fix?</p>