Linux如何查找以conf结尾,且文件内容中包含有network字眼的文件?

2025-05-22 01:42:45
推荐回答(2个)
回答1:

find /tmp -name "*.conf" -exec grep "network" {} \; -print
或者
find ./ -name "*.conf" |xargs grep "network"|more

回答2:

搜一下:Linux如何查找以conf结尾,且文件内容中包含有network字眼的文件?