title: How can I copy entire directories and exclude specific files in Unix
body: <p>I have a Unix batch script that copies the contents of one directory (call it dir A) to another (call it dir B). </p>
  
  <p>Here is the copy statement I have currently.</p>
  
  <pre><code>cp -urL /path/to/dir/A /path/to/dir/B
  </code></pre>
  
  <p>However, this statement copies over hidden files. </p>
  
  <p>How can I exclude any and all hidden files from being copied over?</p>