title: Extract file contents into array using Bash
body: <p>How to extract a file content into array in Bash line by line.
  Each line is set to an element.</p>
  
  <p>I've tried this:</p>
  
  <pre><code>declare -a array=(`cat "file name"`)
  </code></pre>
  
  <p>but it didn't work, it extracts the whole lines into <code>[0]</code> index element </p>