I\'m working on a Mac, with some fairly old files. Different files were created by different programs, so some of them end with \\r (Mac) and some with \\n (Unix). I want to
This worked for me:
diff -r --ignore-all-space dir1/ dir2/
I am on OS X and have mixed files from OS X and Windows.
Credit: http://www.codealpha.net/514/diff-and-ignoring-spaces-and-end-of-lines-unix-dos-eol/