for i in *vcf; do cat $i | grep -v '#' | sort -k1,1 -k2,2n | cut -f1-10 | grep -v '0/0' | grep -v '\./\.' | cat header - > $i.sorted.vcf; done