If I have an input file below, is there any command/way in Linux to convert this into my desired file as followed?
Input file:
Column_1 Column_2
scaffold_A SNP_marker1
scaffold_A SNP_marker2
scaffold_A SNP_marker3
scaffold_A SNP_marker4
scaffold_B SNP_marker5
scaffold_B SNP_marker6
scaffold_B SNP_marker7
scaffold_C SNP_marker8
scaffold_A SNP_marker9
scaffold_A SNP_marker10
Desired Output file:
Column_1 Column_2
scaffold_A SNP_marker1;SNP_marker2;SNP_marker3;SNP_marker4
scaffold_B SNP_marker5;SNP_marker6;SNP_marker7
scaffold_C SNP_marker8
scaffold_A SNP_marker9;SNP_marker10
I was thinking of using grep, uniq, etc, but still couldn't figure out how to get this done.