I have 2 text files in below format
field1 : test1
field2 : test2
field3 : test3
field4 : test4
and File 2 as :--
field1 : test1
field2 : test2
field3 : test3
field4 : test4
I am trying to compare the files and output as "All records Matched" if everything matches and if it doesn't then "Data Mismatch for field name "
I tried using diff to do basic match by ignoring white space but it is not happening.
diff -byw 1.txt 2.txt
Can someone help me with same ?
Regards.