title: How to find dos format files in a linux file system
body: <p>I would like to find out which of my files in a directory are dos text files (as opposed to unix text files).</p>
  
  <p>What I've tried:</p>
  
  <pre><code>find . -name "*.php" | xargs grep ^M -l
  </code></pre>
  
  <p>It's not giving me reliable results... so I'm looking for a better alternative.</p>
  
  <p>Any suggestions, ideas?</p>
  
  <p>Thanks</p>
  
  <p><strong>Clarification</strong></p>
  
  <p>In addition to what I've said above, the problem is that i have a bunch of dos files with no ^M characters in them (hence my note about reliability).</p>
  
  <p>The way i currently determine whether a file is dos or not is through Vim, where at the bottom it says:</p>
  
  <pre><code>"filename.php" [dos] [noeol]
  </code></pre>