Rename files based on name in text file

Hello, I have a text file "file.list" with the contents below.

file1
filename1
file2
filename2
file3
filename3

file1, file2 and file3 are files existing in the same directory as the text file file.list.
I want to rename file1 to filename1, file2 to filename2, as show in the text file.

Any suggestions.

Any ideas/thoughts/attempts from your side?

---------- Post updated at 12:31 ---------- Previous update was at 12:30 ----------

Howsowever, try

while read FN1; do read FN2; echo mv $FN1 $FN2; done < file.list
mv file1 filename1
mv file2 filename2
mv file3 filename3

Remove the echo when happy with the output.

2 Likes