Hi,
I want to compare the contents of two text files using Awk. Both files are sorted. I want to see which values changed, deleted or newly added.
E.g.,
file1:
x1 x2 x3 x4 x5 x6
name1 4 5 6 8 10
name2 10 33 44 55 32
..................................
..................................
file2:
x1 x2 x3 x4 x5 x6 x7
name1 4 5 6 10 10 13
name2 10 33 44 45 12
.......................................
.......................................
The comparison should show that the value of x5 changed from 8 to 10, also x7 is a new column in the second file, the value of x6 for name2 in the second file has been deleted.
any ideas are welcomed..
Thanks,
Agilo
I want to compare the contents of two text files using Awk. Both files are sorted. I want to see which values changed, deleted or newly added.
E.g.,
file1:
x1 x2 x3 x4 x5 x6
name1 4 5 6 8 10
name2 10 33 44 55 32
..................................
..................................
file2:
x1 x2 x3 x4 x5 x6 x7
name1 4 5 6 10 10 13
name2 10 33 44 45 12
.......................................
.......................................
The comparison should show that the value of x5 changed from 8 to 10, also x7 is a new column in the second file, the value of x6 for name2 in the second file has been deleted.
any ideas are welcomed..
Thanks,
Agilo