title: sed unknown option to `s' in bash script
body: <p>Im having a bit of trouble putting together a bash script im working on</p>
  
  <p>Here is the code im using. </p>
  
  <pre><code>cat /crawler/bc_daemon.php | sed "s/PORT2/${PORT}/ig" | sed 's/IP2/IPADDRESS/ig' | \
     sed 's/USER2/USER/ig' | sed 's/PASS2/PASSWORD/ig' &gt; bc_daemon.php
  
  cat /crawler/bc_layout.php | sed "s/GITHUB/${REPO}/ig" | sed "s/COINNAME/${NAME}/ig" &gt; bc_layout.php
  </code></pre>
  
  <p>The odd thing is the lines work individually out of the script. but when inside the script i get this</p>
  
  <pre><code>sed: -e expression #1, char 17: unknown option to `s'
  </code></pre>
  
  <p>I am using '' when it can take it literally and "" when it needs to print the variable</p>
  
  <p>It seems to me this should be working. But im lost as to where my error is</p>