title: curl to tar to zip with pipes
body: <p>I am wanting to download a <code>tar.gz</code> archive, extract it and compress it into a <code>zip</code> file in one command with a bash script. Reason for this is to be independent from temporary files.</p>
  
  <p>The code I use:</p>
  
  <pre><code>curl -L "someURL" | tar xOz --strip-components=1 | zip -@ test.zip
  </code></pre>
  
  <p>gives a lot of output to STDOUT so I guess <code>zip</code> is not accepting the pipe.</p>
  
  <p>Maybe I am missing something out here, but the man page of zip doesn't give me more information than using <code>-@</code> or <code>-</code> nor does the internet.</p>