title: Bash script to copy directory to multiple other directories
body: <p>I have two directories, <code>src</code> and <code>build</code>.</p>
  
  <p>Within <code>src</code> I have a folder called <code>core</code> which is where all updates are made.</p>
  
  <p>Within <code>build</code> I have several folders with different names and each of those folders have the same folder structure as <code>src</code>.</p>
  
  <p>What I am trying to do is copy the <code>core</code> folder from <code>src</code> into each of the <code>build</code> sub-directories.</p>
  
  <p>I have tried using </p>
  
  <pre><code>cp -r /src/core /build/* 
  </code></pre>
  
  <p>and also </p>
  
  <pre><code>cp -r /src/core/ /build/*/
  </code></pre>
  
  <p>Any help would be appreciated, and an explanation of how it works would be great!</p>
  
  <p>Thank you :)</p>