26 Jun
2014
26 Jun
'14
17:58
Patrick Shanahan wrote:
* Greg Freemyer <greg.freemyer@gmail.com> [06-26-14 12:43]:
I know "grep -F -f pattern_file <files-to-search>
will give me a list of all lines with a pattern in them.
I want to know which of the patterns had no matches.
I tried "grep -F --count -f pattern_file <files-to-search>" but it gives a cumulative count for all patterns
I want a count per pattern so I can find the patterns with 0 count.
look at "grep -v"
That gives you non-matches. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org