Skip to content

Instantly share code, notes, and snippets.

@yuifu
Last active October 30, 2015 14:10
Show Gist options
  • Save yuifu/0c615c6b684f5a2458d4 to your computer and use it in GitHub Desktop.
Save yuifu/0c615c6b684f5a2458d4 to your computer and use it in GitHub Desktop.
Extract FASTQ entries with a specific sequence length
awk 'BEGIN{l=100}{if(NR%4==1){x=$0};if(length($0)==l){print x; print; getline; print; getline; print}}' foo.fastq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment