title: sed: Bad flag in substitute command '('
body: <p>I'm trying to replace a placeholder ${SNIPPET} with the content of a js file. I struggle to understand the error I receive though.</p>
  
  <pre><code>sed  -e "s/\${SNIPPET}/$(cat snippet.js)/" ../../handlebars/templates/bootstrap-template.hbs
  </code></pre>
  
  <p>Error: bad flag in substitute command: '('</p>
  
  <p>Looking for a solution that could work cross-platform (OSX/Linux)</p>