Thats exactly what I want to do but the problem is that the names of each of the .abi files will be different from the .fasta file and the .fasta files header contain something like this:
>chr1:12345
Why this is needed is that 12345, for example, is the start position of the respective genes in the .fasta files and this would be necessary for the script.