Use the following awk for changing the header of the fastq files:
awk '{print (NR%4 == 1) ? "@1_" ++i : $0}' filename.fastq
Here the bold 1 can be changed to whatever string you wish to use.
awk '{print (NR%4 == 1) ? "@1_" ++i : $0}' filename.fastq
Here the bold 1 can be changed to whatever string you wish to use.