I would like to insert in my file a part of the title of the file.
the file title is
GeneName_something.fas.
And my files have this format:
'>Speciesa
atgaatatagatata
'>Speciesb
atagtagctatgat
I would like to insert the Gene name after the Species name. output will be:
'>Speciesa-GeneName
atgaatatagatata
'>Speciesb-GeneName
atagtagctatgat
I would like to use bash with maybe awk or sed and run it as a loop in my folder. thanks