Skip to content

Instantly share code, notes, and snippets.

@cfljam
Created September 21, 2014 23:52
Show Gist options
  • Save cfljam/b1340eaa70fc05fe349e to your computer and use it in GitHub Desktop.
Save cfljam/b1340eaa70fc05fe349e to your computer and use it in GitHub Desktop.
Split multi-fasta file into individual files
awk '/^>/{s=++d".fasta"} {print > s}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment