title: Extracting IP address from a line from ifconfig output with grep
body: <p>Given this specific line pulled from <code>ifconfig</code>, in my case:</p>
  
  <p><code>inet 192.168.2.13 netmask 0xffffff00 broadcast 192.168.2.255</code></p>
  
  <p>How could one extract the <code>192.168.2.13</code> part (the local IP address), presumably with regex?</p>