in reply to Search strings stored in array into files of a directory

Tips from the Basic debugging checklist