Replace file name from Other File

Hi All,

I have Dir which have 2-3 file and i want to change name of the file base on other text file.

Dir : home/XXX/

201.log
203.log
301.log

CR.txt have Below Data
201 ABC1
203 XYZ2
301 PQR3

Not it Want to Change File Name:- home/XXX/

ABC1.log
XYZ2.log
PQR3.log

Any attempts/ideas/thoughts from your side?

Well, dreaming up a quick and dirty code snippet (untested):

cd home/XXX; while read OLD NEW; do mv ${OLD}.log ${NEW}.log; done < CR.txt