Skip to content

Instantly share code, notes, and snippets.

@danielecook
Last active November 15, 2019 18:16
Show Gist options
  • Save danielecook/9d8237e651b4f354106bea301d9563e9 to your computer and use it in GitHub Desktop.
Save danielecook/9d8237e651b4f354106bea301d9563e9 to your computer and use it in GitHub Desktop.
sort_vcf
function sort_vcf {
grep "^#" ${1}
grep -v "^#" ${1} | sort -V -k1,1 -k2,2n
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment