思路:使用find
获取文件路径,然后拷贝
1
find /source-dir -type f -exec cp {} /target-dir \;
linux - Copy every file of entire directory structure into base path of another - Stack Overflow
思路:使用find
获取文件路径,然后拷贝
1
find /source-dir -type f -exec cp {} /target-dir \;
linux - Copy every file of entire directory structure into base path of another - Stack Overflow