Last active
December 19, 2016 00:26
-
-
Save cbkmephisto/3a6260ad57b224a8e195dbfdf112ae64 to your computer and use it in GitHub Desktop.
Get SNP_ID list from a ab-genotype file
This file contains 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
#!/bin/bash | |
[ ! $# -eq 1 ] && echo $0 ab-genotype_file \# print SNP_IDs of the abg to screen. && exit | |
head -n1 $1 | awk -F\# '{for(i=3;i<=NF;++i)print $i}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment