Linux搜索文件是否包含字符串

#-type f 为文件
#-name 'xxxxx.xxxx' 文件名/可使用模糊匹配
#grep 'xxxx' 筛选包含的字符串内容
find -type f -name '*.*'| xargs grep 'xxxx'

 

posted @ 2020-02-06 17:30  乄末曲丶  阅读(822)  评论(0)    收藏  举报