title: sed replacement command not working on Mac
body: <p>I'm trying to replace some text in a CMakelists.txt file with the value of a bash variable using sed, but I'm getting an error:</p>
  
  <pre><code>sed: 1: "'s/iPhone": invalid command code ?
  </code></pre>
  
  <p>sed command:</p>
  
  <pre><code>sed -i "" 's/iPhone Developer/'$PROVPROF'/g' CMakelists.txt
  </code></pre>
  
  <p>PROVPROF will always have something with this format:</p>
  
  <pre><code>iPhone Developer: Firstname Lastname (Numbers/Letters)
  </code></pre>