I have a directory under which I have 4 files
ERR315336_1.fastq.gz ERR315336_2.fastq.gz ERR315337_1.fastq.gz ERR315337_2.fastq.gz
Also I have the info file for these 4 files in a sep file named info.txt
placenta_6c placenta_6c_ERR315336_1.fastq.gz ERR315336_1.fastq.gz
placenta_6c placenta_6c_ERR315336_2.fastq.gz ERR315336_2.fastq.gz
thyroid_5b thyroid_5b_ERR315337_1.fastq.gz ERR315337_1.fastq.gz
thyroid_5b thyroid_5b_ERR315337_2.fastq.gz ERR315337_2.fastq.gz
I want to change the name of my files in the directory from the info.txt file so after changing names my directory should look like this:
placenta_6c_ERR315336_1.fastq.gz
placenta_6c_ERR315336_2.fastq.gz
thyroid_5b_ERR315337_1.fastq.gz
thyroid_5b_ERR315337_2.fastq.gz
So basically changing ERR315336_1.fastq.gz to placenta_6c_ERR315336_1.fastq.gz
and so on. I have a huge info list file. How can I do this.
Thanks