Skip to content

Instantly share code, notes, and snippets.

@Tabea-K
Created August 25, 2015 08:15
Show Gist options
  • Save Tabea-K/fbafc4c0240c90d5c2cf to your computer and use it in GitHub Desktop.
Save Tabea-K/fbafc4c0240c90d5c2cf to your computer and use it in GitHub Desktop.
Adds incrementing numbers to the headers in a fastq file.
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