Get difference of two text files in excel and highlighting the difference using python.
eg. file1.txt
alok|test1|test2|test3|test4
alok1|test2|aewer|262771|262772
Rest|t1|rang|banh|test
Must|t1|rang|banh|test
file2.txt
alok|test11|test2|test3|test4
alok1|test2|aewer|262771|262772
Rest||rang|banh|test
In excel the difference should be shouwn as below:
file1.txt|alok||`test2`|test3|test4
file2.txt|alok|`test11`|test2|test3|test4
file1.txt|Rest|`t1`|rang|banh|test
file2.txt|Rest||rang|banh|test
`file1.txt`|`Must`|`t1`|`rang`|`banh`|`test`
Basically if a record is present but with some field with different value it should come as red and if the complete line is not presnt in the second file then and vice versa ie second record not presnt in first file then the complete record should come in blue color.
Any help will be appreciated.