title: Replace a string with another recursively in all subdirectories
body: <p>I am trying to run below sh file but getting error.</p>
  <pre class="lang-sh prettyprint-override"><code>Var1=&quot;//abcdef&quot;
  
  Var2=&quot;//mnbvcx&quot;
  
  find ./ \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i &quot;s/{$Var1}/{$Var2}/g&quot;
  </code></pre>
  <p>Error message -</p>
  <pre><code>sed: -e expression #1, char 7: unknown option to `s'
  </code></pre>
  <p>Also while executing I want to the contents of the sh file not to change.</p>