How to merge separated fields in rows into one based on common fields in AWK / UNIX
问题 I am still just a new user to UNIX and especially to AWK. I am having the problem to merge rows based on first 2 columns values. My original data from a file as below: Original data content ======================== ID1 ID2 Field1 Field2 1 1 11F1 11F2 1 2 12F1 12F2 2 1 21F1 21F2 2 2 22F1 22F2 ID1 ID2 Field3 Field4 1 1 11F3 11F4 1 2 12F3 12F4 2 1 21F3 21F4 2 2 22F3 22F4 ID1 ID2 Field5 Field6 1 1 11F5 11F6 1 2 12F5 12F6 2 1 21F5 21F6 2 2 22F5 22F6 As you noticed, columns are split into different