I have 136 .vcf files in a folder; I want to extract some information from each of them and write the output in a .txt file like below
[fi1d18@cyan01 snp]$ bcftools query -f '%CHROM\t%POS\t%REF\t%ALT[\t%ID]\n' file.vcf > file.txt I am doing that one by one manually but takes an ages; Can somebody please helps me in any script to do that for all files in Linux?
Thank you