title: Updating a file with sed
body: <p>I am trying to find and replace a couple of words in a file and try to execute that file as a .sql file</p>
  
  <pre><code>sed -e "s/wordToFind1/UnixFile/g" Check.sql;
  sed -e "s/wordToFind2/WordToReplace2/g" Check.sql;
  </code></pre>
  
  <p>In the above, I am trying to find wordToFind1 and replace it with a UnixFile : /usr/bin/try.txt
  and then, trying to find wordToFind2 and replace it with another word : tablename</p>
  
  <p><strong>Before</strong> sed - Check.sql :</p>
  
  <pre><code>servermonitor on
  spool wordToFind1
  select * from wordToFind2
  </code></pre>
  
  <p><strong>After</strong> sed - Check.sql :</p>
  
  <pre><code>servermonitor on
  spool /usr/bin/try.txt
  select * from tablename
  </code></pre>
  
  <p>Once the above changes are done, I am trying to execute the sql file. Please help!!!</p>