title: How to gzip all files in all sub-directories into one compressed file in bash
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3341131/gzipping-up-a-set-of-directories-and-creating-a-tar-compressed-file">gzipping up a set of directories and creating a tar compressed file</a>  </p>
  </blockquote>
  
  
  
  <p><a href="https://stackoverflow.com/questions/10363921/how-to-gzip-all-files-in-all-sub-directories-in-bash">This post</a> describes how to gzip each file individually within a directory structure. However, I need to do something slightly different. I need to produce one big gzip file for all files under a certain directory. I also need to be able to specify the output filename for the compressed file (e.g., files.gz) and overwrite the old compressed file file if one already exists.</p>