Somewhat OT, but you're a smart bunch of guys:
I'm doing some work on my web site, and trying to automate the process to separate the source of the whitepapers I post from the results (which should be, more and more, a bunch of pdf files).
So the way that I've set things up is that I have my "legacy" files in a directory structure that echoes the directory structure of my site, plus (thanks, SVN!) a bunch of hidden files that pertain to my version control system. The hidden files, but none of the desired files, have the string ".svn" somewhere in their path.
What I want to do is copy, wholesale, that whole directory structure, _excluding_ the version control files.
It'd be really cool to have something like 'cp', only that sorts by a regular expression. I've been trying various combinations of find, sed, and perl, and the complexity seems to be growing, rather than diminishing.
Is there some easy way of doing this that I'm missing? Is this a problem that any of you have solved already? Clearly, I can just write a little app that'll do it, but if there's some two-line solution out there then I'm open to suggestion.