title: how replace string repeated pattern at his start ,linux terminal?
body: <p>I want to edit a string that I get using regular expression in linux shell but I failed.</p>
  
  <p>the thing I want to do is at the start of the string to change repeatedlly occurrence of "00" to "1"</p>
  
  <p>let say : <code>00000120001 to 110100001</code> but I failed to that.</p>
  
  <p>I tried:</p>
  
  <pre><code>echo 00000120001 | sed 's/^\`\&lt;00/1/g' 
  </code></pre>
  
  <p>but got 1000120001</p>