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