skip to Main Content

Ubuntu – How to rename files in a folder with specific conditions?

S_1004_DKDL220006264-1A_HLGLFDSX3_L4_cleaned_1_fastqc.html S_1004_DKDL220006264-1A_HLGLFDSX3_L4_cleaned_1_fastqc.zip S_1004_DKDL220006264-1A_HLGLFDSX3_L4_cleaned_2_fastqc.html S_1004_DKDL220006264-1A_HLGLFDSX3_L4_cleaned_2_fastqc.zip S_1006_DKDL220006298-1A_HKFTLDSX3_L1_cleaned_1_fastqc.html S_1006_DKDL220006298-1A_HKFTLDSX3_L1_cleaned_1_fastqc.zip S_1006_DKDL220006298-1A_HKFTLDSX3_L1_cleaned_2_fastqc.html above are the name of the files in a folder. I want to remove between second _ from right and second _ from left. So that the output looks like S_1004__1_fastqc.html S_1004__1_fastqc.zip S_1004__2_fastqc.html…

VIEW QUESTION
Back To Top
Search