I have a fastq file containing several sequences with headers such as :
tail SRR11149706_1.fastq
@SRR11149706.16630586 16630586/1
CCCAACAACAACAACAGCAACCTCCTCACGCCAACGCCGATCCCGCCGCTGTTTTCCAA
@SRR11149706.16630587 16630587/1
CAAAGCACCAGGTGCAGTGCACCTTGTCCGTCGGTCTGAATATCTGCTCTCTGTTCTCCA
I would like to remove the numbers that come before the "/" as well as this last character. The number of characters is variable. The result should be :
@SRR11149706.16630586 1
CCCAACAACAACAACAGCAACCTCCTCACGCCAACGCCGATCCCGCCGCTGTTTTCCAA
@SRR11149706.16630587 1
CAAAGCACCAGGTGCAGTGCACCTTGTCCGTCGGTCTGAATATCTGCTCTCTGTTCTCCA
Nothing I have tried worked.
Edit : I thought I would remove everything which is between the space and the first / included, but I do need a space.
/awk '/^@/{sub(" [0-9]+/"," ")} 1'