Hi all,

I have a couple of fastq files containing reads starting with different name like:
@HWI-ST865:463:C7C8KACXX:2:2316:21016:100943 1:N:0:TAAGGCGA
@HWI-ST1178:227:C7C95ACXX:7:1101:1581:2125 1:N:0:TAAGGCGA

My question is: how  can I split them in two parts?
I tried to use some tools like fastx_toolkit but I cannot create a proper barcode file
Is there any easy way to do that such as a grep command, cause i also tried with grep but i got an output containing only the first line of the reads and missed the other three
 
Thank you in advance!
You can use either Heng Li's `bioawk` or `grep -A 3`. The former is a wrapper on awk to make it work with separators used in biological data formats, and the latter is a grep that picks up the matching line+3 lines that follow.