title: Modifying "... | tee -a out.txt" to stream output live, rather than on completion?
body: <p>I would need to output the output of a command on a file. Let's say my command is <code>zip -r zip.zip directory</code> , I would need to append/write (any of these options would be fine) to a file (let's say <code>out.txt</code>). I got <code>zip zip.zip directory | tee -a out.txt</code> so far, but it doesn't seem to work, it just writes the whole output when the command is over... How can I achieve this?  </p>
  
  <p>Thanks ;)</p>