title: Script to Insert AWS API Credential
body: <p>I am trying to write a script to insert the API credentials in the awscreds.template. However, the Secret contains special characters.
  As an example:</p>
  
  <pre><code>AWSAccessKeyId=AKIAJ5YhzvVUZnPTBVRA
  AWSSecretKey=fRUZnUVUZnUvYhzvJVpwyn/xN3Oo0l3icqRy0//+
  </code></pre>
  
  <p>My script requests:</p>
  
  <pre><code>echo "Entre the Access Key, followed by an ENTER:"
  read access
  echo "Entre the Secret Key, followed by an ENTER:"
  read secret
  </code></pre>
  
  <p>And then inserts it into the file:</p>
  
  <pre><code>sed -i '/AWSAccessKeyId=/s/$/'$access'/' awscreds.template
  
  sed -i '/AWSSecretKey=/s/$/'$secret'/' awscreds.template
  </code></pre>
  
  <p>However, when I run the script I get the following:</p>
  
  <pre><code>sed: -e expression #1, char 44: unknown option to `s'
  </code></pre>
  
  <p>After doing a bit of research, I made sure to use the <em>'</em> <em>'</em> to restrict the input, but I still get the same alarm. But why am I still getting this error? </p>