Has anyone written a script to (for example) combine these 5 records:
x1,1,2,3
x1,,,,4,5
x2,1,3,5,7
x2,,,,,9,11
x3,1,2,3,4,5
into these 3:
x1,1,2,3,4,5
x2,1,3,5,7,9,11
x3,1,2,3,4,5
If you have records like this:
x1,2,4
x1,3,5
to combine you'd use the largest value. It's pretty esay in SQL, but I can't do it with GAWK.
x1,1,2,3
x1,,,,4,5
x2,1,3,5,7
x2,,,,,9,11
x3,1,2,3,4,5
into these 3:
x1,1,2,3,4,5
x2,1,3,5,7,9,11
x3,1,2,3,4,5
If you have records like this:
x1,2,4
x1,3,5
to combine you'd use the largest value. It's pretty esay in SQL, but I can't do it with GAWK.