I have a txt file with data of this form:
@HWI-ST999:188:C49E6ACXX:8:1101:11404:1998/1 NCGAGGGATGGGAGACCTGGTTGGAAATCCGTGGCTGTTTGGTTGGGGGAT + #4=DDFFDHDHHGJIIJIJIFHIIIJJIJJJDHIGIEDGHGI=CGHJJH9> @HWI-ST999:188:C49E6ACXX:8:1101:1754:2212/1 TCGAATGCATGATAACAATAACCCTGGAACAGGCAACCGTTGTCCCTGACC + CCCFFFFFHHHGHJJJJJJJJJJJJJJJJJJJJIJJJJJIIJJJJJJJJJJ
I would like to remove the
/1 of the end of every 5th line.
Is this possible with a one liner in bash, maybe with sed (OSX)?
Context: I extracted reads from a bam file with Bam2Fastq into the format fastq. But the subsequent processing does not cope with the /1 or /2 in my two files of paired-end reads.