title: Bash script that removes C source comments
body: <p>I need to write a bash script which copies all <code>.c</code> files from a directory <code>$2</code> to another directory <code>$1</code>, but without comments.</p>
  
  <p>I only have to remove comments that begin with <code>//</code>, might have tabs/spaces before the comment, but not letters.</p>
  
  <p>Also, I need to do it with only a few executed lines (no workaround using <code>;</code>). Does anyone has an idea?</p>
  
  <p>For now I have the <code>.c</code> files stored in an array which I need to iterate through:</p>
  
  <pre><code>file_list=()
  while IFS= read -d $'\0' -r file
  do
      file_list=("${file_list[@]}" "$file")
  done &lt; &lt;(find "$2" -maxdepth 1 -name '*.c' -print0)
  </code></pre>
  
  <p>Thanks</p>