find 多文件查找需要单引号

[root@db01 local]# find  -name '*.com'|xargs egrep "qq"
./tt.com:qq
[root@db01 local]# find  -name '*.com'
./tt1.com
./tt.com
[root@db01 local]# find  -name '*.com'|xargs egrep qq
./tt.com:qq
[root@db01 local]# cat tt.com
qq
[root@db01 local]# egrep "qq" `find ./ -name '*.com'`
./tt.com:qq

posted @ 2018-02-04 12:54  滴滴滴  阅读(366)  评论(0编辑  收藏  举报