title: Bash extracting name servers including if they are on new line, using whois
body: <p>Hi guys I an trying to extract the name servers from websites but I cant seem to do it if the servers are on a newline e.g. I can do it if its like so....</p>
  
  <pre><code>nserver:      ns-a.somesite.com 176.195.2.100  
  nserver:      ns-b.somesite.com 176.195.2.101
  </code></pre>
  
  <p>But if it is like this I cant do it:</p>
  
  <pre><code>nserver:     
  ns-a.somesite.com 176.195.2.100  
  ns-b.somesite.com 176.195.2.101
  ns-b.somesite.com 176.195.2.102
  </code></pre>
  
  <p>This is what I have so far:</p>
  
  <pre><code>whois ebay.com | grep -E "[Ss]ervers{0,1}:"
  </code></pre>