我wan't複製包含文件和文件夾特定的文件夾結構,並具有輸出,告訴用戶複製多遠。輸出文件夾/文件名複製
目前我使用以下方法來複制結構內部消除某些特定的文件夾:
cp -rfv !(Project.buildoutput) $Project_SYNC_DIR
但cp -v
輸出非常難看:
> _55_studio.tests/singles/CustomIdentifier.file -> /Users/<path>/_55_studio.tests/singles/CustomIdentifier.file build.sh
> -> /Users/<path>/build.sh
是否有可能只輸出1級元素用乾淨的名字。
我目前的文件夾結構:
_55_studio
--singles
--mixed
_55_studio.tests
--singles
build.sh
project.settings
輸出,同時複製以下:
Copy folder _55_studio
Copy folder _55_studio.tests
Copy file build.sh
Copy file project.settings
是否有一個有效的方式來實現這一目標,以及如何?
BR,使用find
mybecks