Quote:
Originally posted by encrypted
grep -c <pattern> <filename>
|
Nah. grep -c only counts number of lines on which a match occurs, not number of occurrences. So a line with <pattern>foofoo<pattern> would only count as one match with grep -c.
Cheers
ZB