Compare two files, strip trailing carriage return/ nextline (e.g. fileA, fileB)

diff fileA fileB --strip-trailing-cr
click the source code to copy