Is there any grep option that let\'s me control total number of matches but stops at first match on each file?
Example:
If I do this grep -ri --include \'*
grep -ri --include \'*
So, using grep, you just need the option -l, --files-with-matches.
grep
All those answers about find, awk or shell scripts are away from the question.
find
awk