title: how do I grep output of curl when the website never finishes
body: <p>the api for Particle.io says you can <code>curl https://api.particle.io/v1/devices/events?access_token=[token]</code> to see an event log. This works great, except they seem to print newlines with regularity, so I end up with a couple log messages and a ton of newlines.</p>
  
  <p>I'd love to grep the output to trim the newlines (<code>grep -A3 event</code> would be perfect), but when I pipe curl to grep, I get nothing. (I've suppressed the progress indicator with -s). To make sure I'm not mistyping anything, I piped the curl output to cat, and I still get nothing (it initially prints :ok when just not piping, so it's clear whether it worked pretty quickly or not).</p>
  
  <p>My guess is curl doesn't feed the data through the pipe until it completes downloading the target (which will never happen in this case). </p>
  
  <p>Is there any way I can grep curl like this?</p>