I have a directory tree under ./src/
I have another matching directory tree under ./work/
I'm trying to copy all the files in src to work, while keeping the directory structure and excluding all files that end in .java.
Here's my attempt so far:
find src -type f ! -iname *.java -exec cp {} work \;
This almost works, but all the files are put into the top level under work, instead of into the correct place in the directory tree.
How can I do this? (using bash on Mac OS X 10.9)