I have fasta files, coming from different samples eg: 01.fasta, 02.fasta, etc.
All of them contain OTU list with the following pattern:
>OTU1 CCTACGGGCGGCTGCAGT >OTU2 CCTACGGGTGGCTGCAG
I would like to add the file's name (eg. 01, 02, etc) to each
>OTU* line in the fasta file to receive the following:
Can you help me write a script that automatically does it for all files in my folder?