I have list of search phrases to be read from a config file, also I have a folder with list of subfolders and files in which i need to search all the search phrases, and prepare a flat file output, some thing like below.
Search Phrase No Of Matches in the given folder
-----------------------------------------------
Phrase1 20
Phrase2 45
.
.
.
I have one solution with .Net console application reading the phrases from config file and using findstr dos command to get the search results and write to the flat file.
Can any one provide a better solution, something like PERL script etc, which should be fast in preparing the output?