title: To store cat output into an array - shell script
body: <p>How do I store into an array each line of cat command output ?
  E.g if 
  cat /daemon is giving me</p>
  
  <pre><code>11.11.11-1
  
  22.22.22-2
  
  33.33.33-3
  
  44.44.44-4
  </code></pre>
  
  <p>then how do I store the output into an array using shell script and check if "11.11.11-1" is present in that array in an single if condition (but not inside an iteration)?</p>