title: Extract word before all matching character in bash
body: <p>How to extract all the string before <code>:</code>, I could get only the first as below</p>
  
  <pre><code>$ echo "cc_dd:qqq www;aa_bb:ll fi;ee_ff:bb dd ee" | sed 's/:.*//g'
  $ cc_dd
  # want to print cc_dd aa_bb and ee_ff
  </code></pre>