text: user4595: 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
  
  user-1: Error means that quotations are missing. I am not going to review this chunk but at first glance check 
  printf 'TumorAltAlleleCount\tTumorAltAlleleFrequency\t'\n'
  
  There are three quotation marks so one is not matched. I suggest you develop code within a good IDE that will help you debug. Please google around for potential solutions. I personally do R and Shell scripting in RStudio. It differently colors quoted and unquoted code so you immediately see if you missed a closing quotation somewhere.
  
  user4595: 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
  
original_text: 4595: <p>I have a bash script:</p>
  
  <p>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 </p>
  
  <p>I tried changes done in similar script in  <a href="https://bioinformatics.stackexchange.com/questions/11061/changing-this-code-in-a-way-to-work-for-my-files/11067?noredirect=1#comment15031_11067">Changing this code in a way to work for my files</a> but I just  messed everything up</p>
   -1: <p>Error means that quotations are missing. I am not going to review this chunk but at first glance check </p>
  
  <pre><code>printf 'TumorAltAlleleCount\tTumorAltAlleleFrequency\t'\n'
  </code></pre>
  
  <p>There are three quotation marks so one is not matched. I suggest you develop code within a good IDE that will help you debug. Please google around for potential solutions. I personally do R and Shell scripting in RStudio. It differently colors quoted and unquoted code so you immediately see if you missed a closing quotation somewhere.</p>
   4595: <p>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</p>
  
  <p><code>for file in *.vcf ; do bash indel_vcf_parasing.sh $file ; done</code></p>
  