Skip to main content

11.9) Many Differences


Try with two completely different files, like:

sdiff file1 file2

0.1     2.3                                                   | 0.6     9.3
0.2     4.3                                                   | 0.7     8.4
0.3     4.9                                                   | 0.8     4.3
0.4     6.2                                                   | 0.9     2.1
0.5     7.1                                                   | 0.10    0.9

The ‘|’ bar indicates the lines that are different, every one in this case. This website has a summary of the sdiff command that includes some options that you may want to explore if you are doing a lot of work in comparing files.