I have a file (file_in.txt) containing these names:
aphid_splitseq.1.fasta.annot.xml
aphid_splitseq.2.fasta.annot.xml
aphid_splitseq.3.fasta.ann
As long as both your lists are just repetitions of the same kind of name with successive numbers, you shouldn't iterate over files at all. Instead, just count a variable and use that in whatever command you want executed at each step. Example:
COUNT=1
while [ $COUNT -lt 5 ]; do
mv inputfile$COUNT outputfile$COUNT
let COUNT++
done