Created
August 25, 2015 08:15
-
-
Save Tabea-K/fbafc4c0240c90d5c2cf to your computer and use it in GitHub Desktop.
Adds incrementing numbers to the headers in a fastq file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk 'BEGIN{s=0}{if(NR % 4==1){print $0"_"s; s=s+1}else{print $0}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment