title: parse result of bash command
body: <p>I am new to bash scripting and am trying to parse out information from a whois result, specifically, the orgname and city fields.
  Is the proper way to save the result in a string and then parse the string for the relevant information? like:</p>
  
  <pre><code>    RESULT=whois &lt;ip&gt;
      # parse RESULT
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>