I have a large file in this format (I have in both csv and text format and the first column is IDs):
9 KIDL1 1
9 KIDL1 1
9 KIDL2 0
9 KIDL2 1
9 KIDL3 1
9 KIDL3 1
and want to change it to :
KIDL1 KIDL2 KIDL3
9 1/1 0/1 1/1
is it possible using awk commands or related programs?
Not the perfect solution. but I managed to generate the desired output based on input provided.
Demo: