A long short but is there a way to copy the end of select lines and append the text to that line. What I want to achieve is this.
what I have
>13_gnd
atcg
>14_galF
atgc
what I want
>13_gnd_gnd
atcg
>14_galF_galF
atgc
So all lines starting with >
copy the last word and append to the end of the line. Thanks.