title: Split string into multiple variables in Bash
body: <p>I have a string that gets generated below:</p>
  
  <pre><code>192.168.1.1,UPDOWN,Line protocol on Interface GigabitEthernet1/0/13, changed state to up
  </code></pre>
  
  <p>How can I take that string and make 2 variables out of it (using bash)?</p>
  
  <p>For example I want</p>
  
  <pre><code>$ip=192.168.1.1 
  $int=GigabitEthernet1/0/13
  </code></pre>