Dear Biostars,

How can I append sequences of two fastq files ?

Suppose we have two fastq files:
    
     **file1.fastq**
 
    @HEADER
    CTCAGNTTGG
    +
    AAAAA#EEEE
    @HEADER
    GTGAGTTTAG
    +
    AA<AA#EE<E

    **file2.fastq**

    @HEADER
    CTTTA
    +
    #EEEA
    @HEADER
    GTGAG
    +
    A#E<E

    **result.fastq = append file2.fastq to file1.fastq**
    
    @HEADER
    CTTTACTCAGNTTGG
    +
    #EEEAAAAAA#EEEE
    @HEADER
    GTGAGGTGAGTTTAG
    +
    A#E<EAA<AA#EE<E
   
How can I do that ?    
     



I got it, simply: 

    paste -d '\n' file2.fastq file1.fastq | sed -n 'p;n;n;N;s/\n//p' > result.fastq

Thank you h.mon for you help

