grep输出只显示匹配的文件 [英] grep output to show only matching file
本文介绍了grep输出只显示匹配的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于 grep
这个选项,我只能打印匹配文件而不打印符合条件的文件中的行吗?
解决方案
grep -l
(这是一个小写的L)
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
(That's a lowercase L)
这篇关于grep输出只显示匹配的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文