linux grep question
- by lepricon123
how do i find a string in files in a directory. And these file names begin with letter a.
I also want to get the number of occurrences of this string fromt he grep I run.
I tried this
cat * | grep -c string but it searches all files. I just want to search files that begin with letter a
Thanks