title: How to copy all files except one file and one directory to another directory
body: <p>I have the following directory</p>
  
  <ol>
  <li>Dir A:
  <ul>
  <li>.git --> this is a directory</li>
  <li>.gitignore</li>
  <li>Dir B</li>
  <li>Dir C</li>
  <li>Dir E</li>
  <li>file f</li>
  <li>file g</li>
  <li>Dir H</li>
  </ul></li>
  </ol>
  
  <p>I want to copy everything except for (.git, .gitignore and Dir B) to Dir B. (Dir B is under Dir A)</p>
  
  <p>I have tried the following</p>
  
  <pre><code>cp -r !(Dir B|.git|.gitignore) ~/Dir B
  </code></pre>
  
  <p>This works as expected when run it in terminal, but gives me  an  error when i run it from the Jenkins Shell window. </p>
  
  <pre><code>syntax error near unexpected token `('
  </code></pre>
  
  <p>Please Advice</p>