title: read first line of netstat output?
body: <p>I want to read only the  first line of netstat, i.e. the line that explains  what each column means:</p>
  
  <pre><code>Proto  Local Address     Foreign Address  State
  </code></pre>
  
  <p>However, when I do the following:</p>
  
  <pre><code>netstat | egrep -i "^\s*(tcp|udp)" | { 
    read line
    echo 'Here is the first line ' $line
   }
  </code></pre>
  
  <p>I only get the first line of connections:</p>
  
  <pre><code>Here is the first line TCP &lt;Local_addr&gt;  &lt;Foreign_addre&gt;  ESTABLISHED
  </code></pre>
  
  <p>How do I get just that one line?</p>
  
  <p>I am runing Cygwin on Windows 7 machine.  Thanks.  </p>