Press enter to see results or esc to cancel.

Find Difference between 2 files in Linux


root@server2 [~/study]# cat file1
1
2
3
4
root@server2 [~/study]# cat file2
1
2
3
4
5
6
7
8

root@server2 [~/study]# diff file1 file2
4a5,9
> 5
> 6
> 7
> 8
>
root@server2 [~/study]#

here

4a5,9
means append 5 to 9 from position 4 and displayed rest part of file2 next to this result



Comments

Comments are disabled for this post