title: How can I gzip standard in to a file and also print standard in to standard out?
body: <p>I want to execute a command, have the output of that command get gzip'd on the fly, and also echo/tee out the output of that command.</p>
  <p>i.e., something like:</p>
  <pre><code>echo &quot;hey hey, we're the monkees&quot; | gzip --stdout &gt; my_log.gz
  </code></pre>
  <p>Except when the line executes, I want to see this on standard out:</p>
  <pre class="lang-none prettyprint-override"><code>hey hey, we're the monkees
  </code></pre>