I want to copy over all html files in a nested directory but I want to prevent the parent folders above it from being generated as well.
That is if my source path is
/project/ng1/src/templates/**, I would like my generated folders to just be
I currently have the following command:
find projects/ng1/src/templates -name '*.html' -path pages | cpio -pdm projects/ng7/templates
But this generates the folder structure:
I would like:
How do I achieve this?