I wan’t to copy a specific folder structure containing files and folders and have an output that tells the user how far the copying is.
Currently I use the following to copy the structure whithout some specific folders:
cp -rfv !(Project.buildoutput) $Project_SYNC_DIR
But the cp -v output is very ugly:
> _55_studio.tests/singles/CustomIdentifier.file -> /Users/<path>/_55_studio.tests/singles/CustomIdentifier.file build.sh
> -> /Users/<path>/build.sh
Is it possible to output only the Level 1 elements with a clean name.
My current folder structure:
_55_studio
--singles
--mixed
_55_studio.tests
--singles
build.sh
project.settings
output to following while copying:
Copy folder _55_studio
Copy folder _55_studio.tests
Copy file build.sh
Copy file project.settings
Is there an efficient way to achieve this and how?
BR,
mybecks
Here in a one-liner using
find:Output: