grep -c $'\r\n' file returns the exact same number as
grep -c $'\n' file, it shows the number of LF in the file instead of the number of CRLF. (The file definitely does not contain that number of CRLF.) How can I determine the exact number of CRLF occurrences?
I've tried the following commands, none of them return the right number:
grep -c $'\r\n' file grep -c $"\r\n" file grep -c '\r\n' file grep -c "\r\n" file