I really need your help to advice how to show the correct comparison test using diff command. I have two files
FileA:
2 1
3 4166
4 1186
5 14318
6 2451
7 64
10 3
11 18
20 5
FileB:
3 3990
4 1144
5 14368
6 2439
7 64
10 3
11 18
20 5
And running the diff command this way to show a side by side comparison, the output is not what I'm expecting:
diff -y -W 60 FileA FileB
The output is:
2 1 | 3 3992
3 4166 | 4 1144
4 1186 | 5 14372
5 14318 | 6 2439
6 2451 <
7 64 7 64
10 3 10 3
11 18 11 18
20 5 20 5
The expected output should be:
2 1 <
3 4166 | 3 3992
4 1186 | 4 1144
5 14318 | 5 14372
6 2451 | 6 2439
7 64 7 64
10 3 10 3
11 18 11 18
20 5 20 5
I mean, first line in FileB is missing, but diff is not capturing that. Can you please help me to fix this?
diffsees it.