title: How do I load a list from inside a file in bash?
body: <p>I'm new to bash and I just want to load a list from a file mentioning that all the lines starting with <code>#</code> or <code>;</code> should be ignored (and also empty ones).</p>
  
  <p>As expected each valid line should became a string in the list.</p>
  
  <p>I need to perform some action with each (valid) element of this list. </p>
  
  <p>Note: I have a for loop like <code>for host in host1 host2 host3</code>.</p>