I have a folder called "spades" with many subdirectories generated by Spades (each with the name of the sequenced strain). I would like to rename the "contigs.fasta" file with the name of the folder (for ex. DI21.fasta that is in the "DI21" folder) and move the renamed fasta file to a different directory where I want to collect all the fasta files of the different strains. How can i do it in batch? I am working in bash on a mac.