I am new learner of Linux - Ubuntu. I need to rename a large number of files (keeping same extension) corresponding to a list of names in a file. I have a list of names in a text file.
For example
Current filename => New filename
GCA_001340506.1_ASM54621.fna => wax.fna
GCF_0133435.1_ASM4354653.fna => strains2213.fna
I need to rename current filename with the new filename. As we can see, I need two things first to match the corresponding filename and then rename it.
I cannot find a proper way to complete this task. Kindly help me in this regard.
Awan