I have a FASTQ file that contains
@SRR1101035.1.1 **1 length=100**
CCTTGCTCAGACCTTGCCTTGAACTCTTGGCTTCAAGTGATCCNNNNNNNNCGACCTCTCAAAGNGCTGAGGTNATAGGGATGAGCCACTGTGCCTGGCC
+SRR1101035.1.1 **1 length=100**
@@@FFEFDCFCFBHEHHHIIGC@EHHIIII>DEG*1@*?1?DG########(0(7<;FCGHC;=#--5A5?#############################
@SRR1101035.2.1 **2 length=100**
AGCCAATCTGAAAAGGTTACATACTNNANNNTNTNAANNNNNNNNNNNNNNNNAAAAGGCNNNNNTGNNNNNNNNGTGAAAAGATCAGTGGTTGCCAGGG
+SRR1101035.2.1 **2 length=100**
<@@FFDEFHHD>?FEGHIEI>HEHI##########################################################################
I am new in this could you please tell me how to remove the last characters (surrounded by **s), expected results would be
@SRR1101035.1.1
CCTTGCTCAGACCTTGCCTTGAACTCTTGGCTTCAAGTGATCCNNNNNNNNCGACCTCTCAAAGNGCTGAGGTNATAGGGATGAGCCACTGTGCCTGGCC
+SRR1101035.1.1
@@@FFEFDCFCFBHEHHHIIGC@EHHIIII>DEG*1@*?1?DG########(0(7<;FCGHC;=#--5A5?#############################
@SRR1101035.2.1
AGCCAATCTGAAAAGGTTACATACTNNANNNTNTNAANNNNNNNNNNNNNNNNAAAAGGCNNNNNTGNNNNNNNNGTGAAAAGATCAGTGGTTGCCAGGG
+SRR1101035.2.1
<@@FFDEFHHD>?FEGHIEI>HEHI##########################################################################
Google search:
Using sed/awk to remove anything after first space