cp
方法1: cp [root@oldboyedu ~]# find ./ -type f -name "test.sh"|xargs -i cp {} /opt
方法2: cp [root@oldboyedu ~]# find ./ -type f -name "test.sh" -exec cp {} /tmp \;
方法3: cp [root@oldboyedu ~]# cp `find ./ -type f -name "test.sh"` /etc/ mv
mv
方法1:mv [root@oldboyedu ~]# find ./ -type f -name "test.sh"|xargs -i mv {} /opt
方法2:mv [root@oldboyedu ~]# find /opt -size +50M -exec mv {} ./ \;
方法3:mv [root@oldboyedu ~]# mv `find ./ -type f -name "test.sh"` /opt
find ./ -type f -name *.rej -delete