Recursively copy only specific files from a directory tree

Hi
I am a shell-script newbie and am looking to synchronize certain files in two directory structures.

Both these directory-trees are in CVS and so I dont want the CVS directory to be copied over.

I want only .sh and .pl files in each subdirectory under these directory trees to be synchronized.

How do I achieve this?

Thanks
SharpShark

"cvs export .." should read out of a CVS repository without the CVS directory entries.

Hi porter
The problem is that I dont want to copy all files from the directory tree.
I want to have complete control over the directories from which the files are copied and also the files themselves.
Only part of the directory trees are identical (nomenclature wise, etc)
hence cvs export and reimport would fail.

Sharpshark

There is a command called rsync that can do what you want. I would try to use that.