Biotechnology Forums

Full Version: Change Header of fastq files | awk one liner
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.