in reply to Re: how to merge the files of DNA sequences?
in thread how to merge the files of DNA sequences?
perl -lne '/^>(.*)/ or$H{$1}.=$_;END{print for map{">$_\n$H{$_}"}keys%H}' file1.txt file2.txt
In Section
Seekers of Perl Wisdom
in reply to Re: how to merge the files of DNA sequences?
in thread how to merge the files of DNA sequences?
perl -lne '/^>(.*)/ or$H{$1}.=$_;END{print for map{">$_\n$H{$_}"}keys%H}' file1.txt file2.txt