linux复制指定文件

find /somedir -type f|xargs -I {} cp {} .

find /somedir -name "*.txt"|xargs -I {} cp {} .

原文地址:https://www.cnblogs.com/antflow/p/7256031.html