title: extract substring with SED
body: <p>I have the next strings:
   for example:</p>
  
  <pre><code>     input1 = abc-def-ghi-jkl
  
       input2 = mno-pqr-stu-vwy
  </code></pre>
  
  <p>I want extract the first word between "-"</p>
  
  <p>for the fisrt string I want to get: <strong>def</strong> </p>
  
  <p>if the input is the second string, I want to get: <strong>pqr</strong></p>
  
  <p><strong>I want to use the command SED</strong>, Could you help me please?</p>