word by word comparison in two files using loop in shell script
Suppose i have two files delimited by TAB.
1 B AB 2
2 C AB 3
3 B AB 5
2 C AD 3
Output Should be::
Mismatch in file 1 and 2
first Line difference 1,3 and 2,5
second Line difference AB,AD.
Actually the problem is "How can i navigate in both the files at a same time" using any loop.
Using while loop i tried to navigate through both the files at a time.
[code] exec 3<File1.txt
while IFS= read -r line1 <&3
IFS= read -r line2 <&4
but i want word by word comparision which requires word by word navigation then only i can get the output mentioned above.