How can I ignore line endings when comparing files?
Use the --strip-trailing-cr
option:
diff --strip-trailing-cr file1 file2
The option causes diff
to strip the trailing carriage return character before comparing the files.
Use the --strip-trailing-cr
option:
diff --strip-trailing-cr file1 file2
The option causes diff
to strip the trailing carriage return character before comparing the files.