grep output to show only matching file

后端 未结 4 1959
轻奢々
轻奢々 2020-12-22 21:33

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?

4条回答
  •  时光说笑
    2020-12-22 22:02

    Also remember one thing. Very important
    You have to specify the command something like this to be more precise
    grep -l "pattern" *

提交回复
热议问题