I'm trying to do a recursive grep search such as:

grep -r -c "foo" /some/directory

which give me output auch as:

/some/directory/somefile_2013-04-08.txt:0
/some/directory/somefile_2013-04-09.txt:1
/some/directory/somefile_2013-04-10.txt:4
...etc

however, I would like to just get the total number of matches in all files, like:

Total matches:    5

I've played around with some other examples such as in this thread, although I can't seem to do what should be so simple.

Edit
Report