title: Compress multiple files individually with Gzip
body: <p>I have several directories that look like this:</p>
  
  <pre><code>dir1/
    |_foo.txt
    |_bar.txt
  dir2/
    |_qux.txt
    |_bar.txt
  </code></pre>
  
  <p>For each of this directory I want to compress the files inside it into *.gz format
  then delete the uncompressed ones. So finally we hope to get something like this:</p>
  
  <pre><code> dir1/
     |_foo.gz
     |_bar.gz
   dir2/
     |_qux.gz
     |_bar.gz
  </code></pre>
  
  <p>Is there a simple Unix way to do it?</p>