Hi
Does anyone know how to use grep to return the number of files in a directory that contain the search string? I can get it to return the lines that match, but not the number. I've used:
grep -c /usr/bin/*a* > outputfile
This returns all the lines that match and writes them to outputfile, but I need the number of matches.
Thanks