I want to merge paired files that share similar start of the filesname. The output should be a unique name found in the corresponding input files.
I am not sure how do do this, however, cat
would do somehow.
107_MAE_E7_S11_L001_R1_001.fastq.gz
107_MAE_E7_S11_L002_R1_001.fastq.gz
108_IME_A8_S23_L001_R1_001.fastq.gz
108_IME_A8_S23_L002_R1_001.fastq.gz
out
107_MAE_E7_S11.fastq.gz
108_IME_A8_S23.fastq.gz