title: sed command on Solaris
body: <p>I am trying to execute below command to replace variables in SQL with values passed from shell script but every time I am getting the same error as </p>
  
  <blockquote>
    <p>sed: command garbled</p>
  </blockquote>
  
  <pre><code>sed -e 's/${BATCH_ID}/'${BATCH_ID}'/g; s/${LOAD_DATE}/TO_DATE\('"'"${LOAD_DATE}"'","'"YYYY-MM-DD"'"\)'/g' ${sqlFile}  &gt;&gt; ${SQL_DIR}/fmv_media_premise_ucg_update_temp.sql
  </code></pre>
  
  <p>Please can you help me in this. 
  Thanks in advance.</p>