I have a bunch of log files. I need to find out how many times a string occurs in all files.
grep -c string *
returns
... f
grep -oh string * | wc -w
will count multiple occurrences in a line