title: In place untar and delete tar (or tar.gz)
body: <p>I have this tiny code here </p>
  
  <pre><code>for i in *.tar.gz; 
     do tar xzvf $i;
  done &amp;&amp; find . -name "*.tar.gz" -exec rm {} \; 
  </code></pre>
  
  <p>Now, when I have multiple tars, it will first untar all of them and then delete the tar files.</p>
  
  <p>How can I change the code to untar a file, to delete it and then move to the next tar file?</p>
  
  <p>Thanks in advance</p>