grep 输出只显示匹配的文件 [英] grep output to show only matching file
本文介绍了grep 输出只显示匹配的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
grep
的选项是什么,只允许我打印匹配的文件而不是文件中符合条件的行?
What is the option for grep
that will allow me only to print the matching file and not the line within a file that matches the criteria?
推荐答案
grep -l
(这是一个小写的 L)
(That's a lowercase L)
这篇关于grep 输出只显示匹配的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文