title: How to find a windows end of line (EOL) character
body: <p>I have several hundred GB of data that I need to paste together using the unix paste utility in Cygwin, but it won't work properly if there are windows EOL characters in the files. The data may or may not have windows EOL characters, and I don't want to spend the time running dos2unix if I don't have to. </p>
  
  <p>So my question is, in Cygwin, how can I figure out whether these files have windows EOL CRLF characters? </p>
  
  <p>I've tried creating some test data and running </p>
  
  <pre><code>sed -r 's/\r\n//' testdata.txt
  </code></pre>
  
  <p>But that appears to match regardless of whether dos2unix has been run or not.</p>
  
  <p>Thanks.</p>