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
You can add -R to search recursively (and avoid to use cat) and -I to ignore binary files.
-R
-I
grep -RIc string .