FASTA header looks like:
>1570-13.segment.flu1_PB2 >1570-13.segment.flu2_PB1 >1570-13.segment.flu3_PA
Filenames looks like:
I want to have FASTA headers that looks like:
>201301234_PB2 >201301234_PB1 >201301234_PA
I have seen this answer: Change header of a Fasta file according to the file name How can I modify this to preserve the _PB2...?