title: How do you search for files containing DOS line endings (CRLF) with grep on Linux?
body: <p>I want to search for files containing DOS line endings with grep on Linux.  Something like this:</p>
  <pre class="lang-sh prettyprint-override"><code>grep -IUr --color '\r\n' .
  </code></pre>
  <p>The above seems to match for literal <code>rn</code> which is not what is desired.</p>
  <p>The output of this will be piped through xargs into todos to convert crlf to lf like this</p>
  <pre><code>grep -IUrl --color '^M' . | xargs -ifile fromdos 'file'
  </code></pre>