06-09-2006
29,
0
Join Date: Jun 2006
Last Activity: 17 July 2006, 10:17 AM EDT
Posts: 29
Thanks Given: 0
Thanked 0 Times in 0 Posts
FILE Comaprison
Is it possible to comapre 2 files bit by bit and output the following things:
1. Bit position of mismatch in each line
2. Missing records in either of the two files
Note 3rd column in both the files is unique
File 1
ABC 1212 san
ASB 2121 van
AWS 2122 man
AKS 1112 dan
AQZ 1123 ran
SQA 3232 jam
BQA 3121 pan
GAT 3452 wat
File 2
ABC 1212 san
ASB 2222 van
AWS 2122 man
AQZ 1123 ran
AQZ 1123 wat
DAT 3223 sat
SQA 3232 jam
BQA 3121 pan
GAT 3452 wat
Output File
Records missing in file 1 are: DAT 3223 sat, AQZ 1123 wat
Records missing in file 2 are: AKS 1112 dan
Mismatch in bit position: 6 & 8 for string van
Please help in this regard
Last edited by sandeep_hi; 06-09-2006 at 11:35 AM..