title: pipe one long line as multiple lines
body: <p>Say I have a bunch of XML files which contain no newlines, but basically contain a long list of records, delimited by <code>&lt;/record&gt;&lt;record&gt;</code></p>
  
  <p>If the delimiter were <code>&lt;/record&gt;\n&lt;record&gt;</code> I would be able to do something like <code>cat *.xml | grep xyz | wc -l</code> to count instances of records of interest, because cat would emit the records one per line. </p>
  
  <p>Is there a way to write <code>SOMETHING *.xml | grep xyz | wc -l</code> where <code>SOMETHING</code> can stream out the records one per line? I tried using <code>awk</code> for this but couldn't find a way to avoid streaming the whole file into memory.</p>
  
  <p>Hopefully the question is clear enough :)</p>