I already could manage to count strings in all files in directory:
grep -roh „XXX" . | wc –w
But I don't know how to isolate the statement. I only want to count the words in files which have the the following string "2015-09-25" in the filename.
Can anybody help me here?