Searches in a directory for words or a pattern