I have a directory tree with a bunch of folders and subfolders in it and a bunch of files in those sub folders. I need to get the count of the word 'Hello' in each of those files and display the result as 'File 'a' has 'Hello' n times', 'File 'b' has 'Hello' m times' and so on. How do i write a script in linux, so that i can get the word count for the word hello in each of these files. I have tried some grep combinations with 'wc' after browsing through net , but that gave me the total count from all the files in all the folders.
Thanks