拷贝目录下文件,但某种类型文件例外

使用rsync即可。

rsync -rv --exclude=.git copy_from copy_to
原文地址:https://www.cnblogs.com/buptmuye/p/3722414.html