title: grep output prints only single line in bash script
body: <p>How can I get the results from grep to print on their own line in a bash script?</p>
  
  <p>When using grep in the terminal, the output appears how I wish it would appear. </p>
  
  <p>For instance:</p>
  
  <pre><code>$ whois x.x.85.72 | grep 'OrgName\|NetRange\|inetnum\|IPv4'
  NetRange:       x.x.85.64 - x.x.85.95
  NetRange:       x.x.0.0 - x.x.255.255
  OrgName:        xxxxx Technologies Inc.
  </code></pre>
  
  <p>When using the same grep command in bash it prints out on one line.</p>
  
  <p>The output of my bash script:</p>
  
  <pre><code>$ lookup xx.com
  xx.com resolves to: x.x.85.72
  NetRange: x.x.85.64 - x.x.85.95 NetRange: x.x.0.0 - x.x.255.255 OrgName:xxxxx Technologies Inc.
  </code></pre>
  
  <p>My bash script:</p>
  
  <pre><code>#! /bin/bash
  VAR1="$1"
  
  IP=`net lookup $VAR1`
  echo $VAR1 resolves to: $IP
  RANGE=`whois $IP | grep 'OrgName\|NetRange\|inetnum\|IPv4'`
  echo $RANGE 
  </code></pre>
  
  <p>aside from a solution, can anyone tell me why it does this?</p>
  
  <p>Thanks a bunch!</p>