title: Multiple replacements with one sed command
body: <p>I'm wondering how I can do a multiple find/replace using a single <code>sed</code> statment in <code>Mac OSX</code>.  I'm able to do this in  <code>Ubuntu</code> but because of the <code>BSD</code> nature of <code>OSX</code>, the command must be slightly altered.</p>
  
  <p>So, given a file with the string:  </p>
  
  <pre><code>"Red Blue Red Blue Black Blue Red Blue Red"
  </code></pre>
  
  <p>I want to run a sed statement that results in the output:  </p>
  
  <pre><code>"Green Yellow Green Yellow Black Yellow Green Yellow Green"
  </code></pre>
  
  <p>My two sed statements with a qualifying <code>find</code>  </p>
  
  <pre><code>color1="Green"  
  color2="Yellow"  
  find . -type f -exec sed -i '' s/Red/$color1/g {} \;  
  find . -type f -exec sed -i '' s/Blue/$color2/g {} \;  
  </code></pre>
  
  <p>I've tried several combinations of semicolons and slashes, and looked at <a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/sed.1.html" rel="noreferrer" title="Apple&#39;s man page">Apple's Dev man page for sed</a> but with a lack of examples, I couldn't piece it together.  </p>