title: for each dir create a tar file
body: <p>I have a bunch of directories that need to be restored, but they have to first be packaged into a .tar. Is there a script that would allow me to package all 100+ directories into their own tar so dir becomes dir.tar.</p>
  
  <p>So far attempt:</p>
  
  <pre><code>for i in *; do tar czf $i.tar $i; done
  </code></pre>