Need to search a directories with lots of sub-directories for a string inside files:
I\'m using:
grep -c -r \"string here\" *
How can I
I would try a combination of find and grep.
find . | xargs grep -c "string here"
Anyway, grep -c -r "string here" * works for me (Mac OS X).
grep -c -r "string here" *