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
short recursive variant:
find . -type f -exec cat {} + | grep -c 'string'