title: Using sed to insert file content
body: <p>I'm trying to insert a file content before a given pattern</p>
  
  <p>Here is my code:</p>
  
  <pre><code>sed -i "" "/pattern/ {
  i\\ 
  r $scriptPath/adapters/default/permissions.xml"
  }" "$manifestFile"
  </code></pre>
  
  <p>It adds the path instead of the content of the file.</p>
  
  <p>Any ideas ?</p>