title: for loop through files with spaces and some special characters
body: <p>I need to run the following command with a for loop</p>
  
  <pre><code>cat Locate\ Message.eml | ./locatePipe.php
  </code></pre>
  
  <p>I am trying the following however it seems to break on the first space in the file name</p>
  
  <pre><code>for i in $(find -name "*.eml"); do cat $i | ./locatePipe.php; done
  </code></pre>
  
  <p>Some of the file names contain "@", "()", "-", ".", "[]", " ' " if that matters</p>