title: sed replace string with pipe and stars
body: <p>I have the following string:<br></p>
  <pre><code>|**barak**.version|2001.0132012031539|
  </code></pre>
  <p>in file <code>text.txt</code>.
  I would like to replace it with the following:</p>
  <pre><code>|**barak**.version|2001.01.2012031541|
  </code></pre>
  <p>So I run:</p>
  <pre><code>sed -i &quot;s/\|\*\*$module\*\*.version\|2001.0132012031539/|**$module**.version|$version/&quot; text.txt
  </code></pre>
  <p>but the result is a duplicate instead of replacing:</p>
  <pre><code>|**barak**.version|2001.01.2012031541|**barak**.version|2001.0132012031539|
  </code></pre>
  <p>What am I doing wrong?
  Here is the value for module and version:</p>
  <pre><code>$ echo $module
  barak
  $ echo $version
  2001.01.2012031541
  </code></pre>