title: Command to replace a string with another string with a slash
body: <p>I can't find the mistake in my command. I want to replace </p>
  
  <pre><code>/home/data/newfiles with /home/data/data1/newfiles
  </code></pre>
  
  <p>I used</p>
  
  <pre><code> sed -i 's/data/data/data1/g' filename
  </code></pre>
  
  <p>but it is not working.</p>