title: How to gzip files and keep original extension?
body: <p>It seems that if I run <code>gzip somefile.js</code>, I get <code>somefile.js.gz</code> as the output.</p>
  
  <p>However, I need to preserve the original file extension, i.e for <code>somefile.js</code>, I need it to remain <code>somefile.js</code> after gzipping.</p>
  
  <p>How can I do that?</p>
  
  <p>Edit: To be clear, I need to do this for dozens of files, so I can't just <code>mv</code> each one. I simply want to gzip all the static css / js files and then upload them to my CDN, so I can serve them as regular js / css files.</p>