title: How to read entire line from bash
body: <p>I have a file <code>file.txt</code> with contents like </p>
  
  <pre><code>i love this world
  
  I hate stupid managers
  I love linux
  
  I have MS
  </code></pre>
  
  <p>When I do the following:</p>
  
  <pre><code>for line in `cat file.txt`; do
  echo $line
  done
  </code></pre>
  
  <p>It gives output like </p>
  
  <pre><code>I
  love
  this
  world
  I
  ..
  ..
  </code></pre>
  
  <p>But I need the output as entire lines like below &mdash; any thoughts ?</p>
  
  <pre><code>i love this world
  
  I hate stupid managers
  I love linux
  
  I have MS
  </code></pre>