title: rsync with folder and file name pattern matching to copy files
body: <p>Right now I'm successfully running:</p>
  
  <pre><code>rsync -uvma  --include="*/" --include="*.css" --exclude="*" $spec_dir $css_spec_dir
  </code></pre>
  
  <p>In a shell script which copies all of the files in the source directory, that are .css files, into a target directory. </p>
  
  <p>I want to do the same for HTML files, but only where they are in a subfolder with the name 'template'. </p>
  
  <p>So I'm in directory ~/foo, and I want to rsync where the --include="*/" only matches on subfolders with the name 'template'. So ~/foo/bar/template/baz/somefile.html would match, and so would ~foo/bar/baz/qux/template/someotherfile.html, but NOT ~/foo/bar/thirdfile.html</p>