There are two folders
FolderA - Contains multiple sub folders and multiple files
FolderB - Also contains multiple sub folders and files (more sub folders and files than FolderA)
Consider it like this FolderA is a updated version of FolderB but only contains updated files.
Now I want to compare FolderB with FolderA and copy all the common files from FolderB into FolderC with out loosing structure.
Example: if there is a file testing.xml in FolderA/ext/tmp/settings/testing.xml and also in FolderB/ext/tmp/settings/testing.xml
then I want to copy FolderB/ext/tmp/settings/testing.xml to FolderC/ext/tmp/settings/testing.xml
How can I do that using simple script.