title: How to skip line with comment (# space ) in bash for loop
body: <p>With the following code:</p>
  
  <pre><code>#!/bin/bash
  export LC_ALL=C
  
  for input_file in $(&lt;inputflist.txt)
  do
      case "$input_file" in \#*) continue ;; esac
      echo $input_file
  
  done
  </code></pre>
  
  <p>And <code>inputflist.txt</code> with the following content:</p>
  
  <pre><code># foo.txt
  bar.txt
  </code></pre>
  
  <p>I expect it to just print the last line <code>bar.txt</code> but it prints this instead:</p>
  
  <pre><code>foo.txt
  bar.txt
  </code></pre>
  
  <p>What's the right way to do it?</p>