Question:
How do you search for files containing dos line endings (CRLF) with grep on Linux?Answer:
Use ctrl-V ctrl-M to enter a literal ctrl-M into your grep string. so:grep -IUr --color "^M"
will work - if the ^M there is a literal ctrl-M that you input as I suggested.
If you want the list of files, you want to add the -l option as well.