I have two files:
File1 File2
abc abc
cde cde,xyz,efg,hij,...,n
efg lmn,opq,weq,...n
Now I want to compare File1 line1 with File2 line1, line2 with line2 and so on. However, in File2 a single line can have multiple entries separated with 'comma'.
Now if the entry in File1 matches with any of the corresponding line entries in File2 the result should be OK, else show the difference.
For example:
File1 File2
cde cde,xyz,efg,hij,opt
the result should be OK because cde
exist in both files.
Can you please help me out to write a shell script like diff gave me, including the entry differences.