# Looping over several files in bash

I have a bash script:

I am wondering how I can change this script to loop over a bunch of .vcf files and give output .txt with the name of corresponding .vcf

I tried changes done in similar script in Changing this code in a way to work for my files but I just messed everything up

If we save the script pasted in the main post as a sh file and we have some .vcf files in a folder, by this line we can iterate over vcf files to extract what mentioned in the script returning .txt output by the name of corresponding vcf

for file in *.vcf ; do bash indel_vcf_parasing.sh \$file ; done

printf 'TumorAltAlleleCount\tTumorAltAlleleFrequency\t'\n'