title: Split output of cat command into separate lines
body: <p>I have a trouble with splitting output of <strong>cat</strong> command (<code>cat /proc/meminfo</code>) into separate lines for working with them.</p>
  
  <pre><code>#!/bin/bash
  CURR_DUMP=$(cat /proc/meminfo)
  arrIN=(${CURR_DUMP// kB/})
  
  for t in "${arrIN[@]}"
  do
  echo $t
  done
  
  exit 0
  </code></pre>
  
  <p>But instead of separate lines I have a mess of parts of each line.
  What's going wrong with my solution?</p>
  
  <p>Thanks in advance.</p>