Linux下Find与cp、rm结合的应用

来源:互联网 发布:软件论坛网 编辑:程序博客网 时间:2024/05/21 18:34

转自:http://blog.gxnews.com.cn/u/12/a/735343.html

一、find and cp
find /home -name '*.conf'|xargs -I {} cp -r {} /home/conf/


二、find and rm
find /home -name 'test-file-*' | xargs rm -rf

原创粉丝点击