I have many files on my Linux machine with file names like this:
Veillonella-sp.-AF13-2-AF13-2.Scaf1.faa
Weissella-cibaria-strain-AM27-24-AM27-24.Scaf1.faa
Streptococcus-salivarius-strain-AF24-6AC-AF24-6AC.Scaf1.faa
There is a part of the file name that is repeated. I would like to have only the unique names. I want to edit this file name to have only this:
Veillonella-sp.-AF13-2.faa
Weissella-cibaria-strain-AM27-24.faa
Streptococcus-salivarius-strain-AF24-6AC.faa
Can you please show me a way to edit these file names?
My linux distribution is CentOS
Thanks!