title: linux replace string in files recursively
body: <p>I have a folder which is full of *.java files. it has the following method in it:</p>
  <pre><code>options.addArguments(//&quot;--no-sandbox&quot;, // trying to make browser opening faster, but this argument can have security implications
              &quot;--disable-extensions&quot; // avoid the chrome automation extension crash
              , &quot;--no-proxy-server&quot; // trying to make browser opening faster
              , &quot;--proxy-server='direct://'&quot; // trying to make browser opening faster
              , &quot;--proxy-bypass-list=*&quot; // trying to make browser opening faster
              , &quot;--proxy-server=&quot; // trying to make browser opening faster
              // ,&quot;--blink-settings=imagesEnabled=false&quot; // disable images loading for faster testing
              );
  </code></pre>
  <p>i wanted to change this as following:</p>
  <pre><code>options.addArguments(&quot;--no-sandbox&quot;, // trying to make browser opening faster, but this argument can have security implications
              &quot;--disable-dev-shm-usage&quot;
              , &quot;--disable-extensions&quot; // avoid the chrome automation extension crash
              , &quot;--no-proxy-server&quot; // trying to make browser opening faster
              , &quot;--proxy-server='direct://'&quot; // trying to make browser opening faster
              , &quot;--proxy-bypass-list=*&quot; // trying to make browser opening faster
              , &quot;--proxy-server=&quot; // trying to make browser opening faster
              // ,&quot;--blink-settings=imagesEnabled=false&quot; // disable images loading for faster testing
              );
  </code></pre>
  <p>I have searched in the forum and found some solutions, replce string is what i wanted so tried the following:</p>
  <pre><code>grep --null -rl //&quot;--no-sandbox&quot; -l | tr '\n' ' ' | xargs --null sed -i 's///&quot;--no-sandbox&quot;/&quot;--no-sandbox&quot;,
              &quot;--disable-dev-shm-usage|,/g'
  </code></pre>
  <p>But it throwing me the following error:</p>
  <pre><code>sed: -e expression #1, char 6: unknown option to `s'
  </code></pre>
  <p>I guess the old_string and new_string formates are the problem here. how can I fix it, or do it in a more efficient and meaningful way.</p>