title: How to replace strings in all files using sed?
body: <p>I want to replace below line with next line in all the files. So what <code>sed</code> pattern is used for this. I have tried lot but not figured that out..</p>
  
  <pre><code>checkToken($token['token'])
  checkToken($token)
  </code></pre>
  
  <p>This is what I have tried</p>
  
  <pre><code>sed -i -- 's/checkToken\(\$token\['token'\]\)/checkToken\(\$token\)/g' get_officers_v2.php
  </code></pre>