I used double redirection with new file descriptors to rename all flac files of a directory according to a given "filelist.txt" this way:
while read -u 9 filename ; do
read -u 8 newname
echo mv "$filename" "$newname"
done 9<<<"$(ls -1 *flac)" 8< filelist.txt
Each .flac file name on the directory goes through file descriptor 9 to the variable "filename" while in the same iteration, each line of the filelist.txt goes through file descriptor 8 to the variable "newname".
Yes, one of the new file descriptors could have been avoided and simply use the default standard input (deleting "-u 9" and "9"), but I got used to not use stdin for those; that way you can include a read statement inside the loop for interactivity or control, and it won't be filled by the redirected data.
The echo is for "test-only" and should be deleted after approving the operation.
ls
to get the files, you will get sorted alphabetically, but eventually, you can have different mappingfilename_X => string_Y