常用命令总结

find 与mv、cp的合用

第一种:
mv `find /root/ -name "tet"` /tmp/
第二种:
find ./ -name tet -exec mv {} /tmp ;
第三种:
find ./ -name "tet"|xargs -i mv {} /tmp
第四种:
find ./ -name "tet"|xargs -I {} mv {} /tmp

批量替换

find ./ -name qfs.xml|xargs -i cp qfs.xml {}
原文地址:https://www.cnblogs.com/wzxmt/p/13423572.html