I want to search for files containing DOS line endings with grep on Linux. Something like this:
grep -IUr --color \'\\
You can use file command in unix. It gives you the character encoding of the file along with line terminators.
$ file myfile myfile: ISO-8859 text, with CRLF line terminators $ file myfile | grep -ow CRLF CRLF