Gents,
Can you help please
I have a data base with lot information (file2) and I have some data in (file1) to compare.
Then the comparison should be done using the following keys:
Example ( values from file1 )
key1 = columns from 20-34 substr($0,20,15)
66705.00 19793
key2 = columns from 40-80 substr($0,40,41)
1 2071 66500.00 19604.00 20016.001
Then using this keys need to compare that all information for key1 and range in key2. Matches in file2
The key1 is the same during 18 rows and then it change to other value, but the key2 changes every row.
So, the thing is to compare that all information in file1 match in file2..and when there is some difference..
Example in
file1
X 4960 22110 66705.00 19793.001 3441 40001 66704.00 19610.00 20016.001
file2
X 1 66705.00 19793.00 3441 36441 66704.00 19610.00 20016.001
values doesn't match in 40001
and 36441
The desired output will be:
66705.00 19793 has error.
If everything is ok not output will appears.
Please help me with this.