title: How can I parse/capture strings separated by dashes?
body: <p>In a Bash shell script, I'm processing data that starts off like this:</p>
  
  <pre><code>string1-string2-string3-string4-etc
  </code></pre>
  
  <p>I need <code>string1</code> and <code>string2</code> assigned to unique variables, and <code>string3-string4-etc</code> left together inside of another single unique variable. I played around with trying to set IFS but then <code>string3</code>, <code>string4</code>, and <code>etc</code> were disconnected.</p>
  
  <p>How can I get the data I want? I'd prefer builtin shell commands if possible, but gawk or other tools are fine too.</p>