Find files containing the searched expression #1599
Answered
by
BurntSushi
AtomicNess123
asked this question in
General
-
Is it possible to find the files (and not each hit) of the searched expression? I would just need to know which files contain the term, without having a line for each result. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
May 27, 2020
Replies: 1 comment 1 reply
-
Yup. Use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AtomicNess123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yup. Use
-l/--files-with-matches
flag. Alternatively, the-c/--count
flag will emit the same output, but with the total number of matches in each file.