I have a .vcf file where I already have the dbSNP identifiers listed in the ID column. I am simply trying to count the number of variants in the dataset with a dbSNP (rs...) present (nulls are denoted as ".").
I've tried the below linux command but it seems incorrect as I've manually counted a different number:
grep -v rs SRR1611183.gatk.vcf | wc -l 1812
I'm looking for something that really targets the ID column, either counting dbSNP's or the nulls.