title: Shell Scripting for find and replace with confirmation
body: <p>I'm using Ubuntu 16.04 in making scripts.In my bash file i have a code here:</p>
  
  <pre><code>sed -i 's/error/right/g'  hello.txt
  </code></pre>
  
  <p>This is for the global find and replace in my file "hello.txt". 
  <strong>How can I convert it to make it a find and replace script with confirmation?</strong></p>