Is it possible to determine the number of times a certain word appears with grep
I tried the "-c" option, but this returns the number of matching lines that indicates a particular word in
For example, if I have a file with
a few words and matchWord and matchWord
and then another matchWord
running grep in this file for "matchingWord" with the option "-c" will only return 2 ...
note: this is a grep command line utility on standard unix os
source share