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
cat * | grep -c string
One of the rare useful applications of cat.
cat