title: Extract email string from string in bash
body: <p>I have a variable: <code>$change</code>.</p>
  
  <p>I have tried to extract email from it (find the string between "by" and "@"):</p>
  
  <pre><code>change="Change 1234 on 2016/08/31 by name@company.com 'cdex abcd'"
  email=$(echo $change|sed -e 's/\by\(.*\)@/\1/')
  </code></pre>
  
  <p>It did not work.</p>