title: bash sed replace from first ocurrence to right
body: <p>I am trying to obtain the first word before /</p>
  <p>I am using following sed:</p>
  <pre><code>echo 'a/b/c' | sed 's/\(.*\)\/\(.*\)/\1/g'
  </code></pre>
  <p>But this gives me <code>a/b</code>, I would like it to give me only <code>a</code></p>
  <p>Any ideas?</p>