DIFF: Compare Files
diff compares two text files and displays any lines that are different.
diff switches... file1 file2
Switch | Description |
---|---|
-c | Show context around differences |
-e | Set off differences with <<>> |
-i[macro] | Set off differences with #if macro / #else / #endif |
-w | Ignore trailing whitespace when comparing lines |