title: find with spaces in filename
body: <p>I often use grep twice with find in order to search for two patterns in a file as follows:</p>
  
  <pre><code>find . -name \*.xml | xargs grep -l "&lt;beans" | xargs grep singleton
  </code></pre>
  
  <p>Then I ran into files with spaces which of course broke the above command.  I modified it as follows to deal with the spaces:</p>
  
  <pre><code>find . -name \*.xml -print0 | xargs -0 grep -l "&lt;beans" | xargs grep singleton
  </code></pre>
  
  <p>The option -print0 tells find to use print null as a separator instead of space and -0 tells xargs to expect a null.  This works as long as none of the files I am looking for have spaces in their paths, but it breaks if they do.</p>
  
  <p>So what I need is a flag to tell grep to print null as a speartor instead of newline.</p>
  
  <p>Any ideas?</p>