Hi all,

I need some help to concatenate specific lines from my files to an output file. I am very new to Perl.

For example:

File 1:
>GH233
ATAGCGCGTCTTC
>MN345
ATATGCTCGCTCG

FILE 2:
>GH233
ATATCGCTGCTCTC
>SH235
ATAGCTGCTTCTGC

Output file:
>MN345
ATATGCTCGCTCG
>SH235
ATAGCTGCTTCTGC

Thank you so much.
PB