Last active
November 15, 2019 18:16
-
-
Save danielecook/9d8237e651b4f354106bea301d9563e9 to your computer and use it in GitHub Desktop.
sort_vcf
This file contains hidden or 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
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