Entering edit mode
3.9 years ago
sskimvd
•
0
I want to move the row that matches the first row of data1 to the last row of data1.
data1
id s1 s2 s3 s4
a 1 0 2 1
b 2 0 1 2
b 0 0 1 1
c 0 1 2 2
data2
id here
a a1
b a2
c a3
after
id s1 s2 s3 s4 here
a 1 0 2 1 a1
b 2 0 1 2 a2
b 0 0 1 1 a2
c 0 1 2 2 a3
help me
thank you
with join function:
with tsv-utils join function:
input:
output:
Related post at StackOverflow: