output should be like
file1:52424|1|0|1|1|0|0|0|1|2
file2:52424|1|0|1|1|0|0|0|0|2
-----------------
file1:43236|1|0|1|1|0|0|0|1|2
file2:43236|1|0|1|1|0|0|0|0|2:mad:
thanx sir
that is working fine
and i got my reruired data
dear i thing more now suppose bOth the files filds are heading with
A,B,C,D and i want to compare both the files on the bases of 1st field and print only 1st filed and that mismatch field
# cat file1
A |B |C|D |E|F|g|H|I|J
00354|1|0|1|1|0|0|0|1|2
52424|1|0|1|1|0|0|0|1|2
43236|1|0|1|1|0|0|0|1|2
41404|1|0|1|1|0|0|0|1|2
79968|1|0|1|1|0|0|0|1|2
# cat file2
A |B |C|D |E|F|g|H|I|J
00354|1|0|1|1|0|0|0|1|2
52424|1|0|1|1|0|0|0|0|2
43236|1|0|1|1|0|0|0|0|2
41404|1|0|1|1|0|0|0|1|2
79968|1|0|1|1|0|0|0|1|2
NOTE : files are too large and diff may be in any filed.
o/p should be
A | I
file1:52424|1|
file2:52424|0|
-----------------
file1:43236|1|
file2:43236|0|
Which one of the above Sirs (or maybe ladies for that matter) are you referring to?
ok, this a new requirement.
Having the first task behind you/us and understanding it completely, how far have you gotten so far implementing a new requirement reusing the gained knowledge?