This helps you scan through a number of directories within the specified directories to scan all the respective files with a given extension and output the string to be searched.