Hi guys,
I have a multi-fasta like this
>Citrobacter_freundii_D8_6645..17576
gtgatcgtcaagaaggttaagaacccgcagaaggcagca
>Enterobacter_hormaechei_35012_3830..23574
atggacgatagagaaagaggcttagcatttttatttgcaatt
And I would like to eliminate the numbers flanking .., to have an output like this
>Citrobacter_freundii_D8
gtgatcgtcaagaaggttaagaacccgcagaaggcagca
>Enterobacter_hormaechei_35012
atggacgatagagaaagaggcttagcatttttatttgcaatt
Since the number are variable, I guess just creating a command to remove x characters from the end of the fasta-header won't be enough. Thanks!
Thanks, saved my day!
You can accept more than one answer, if they all work. Just so you know.