Find all files/directories under '/abs/path/to/directory' directory non-recursively that match the pattern '.*invalidTemplateName.*' in their names
find /abs/path/to/directory -maxdepth 1 -name '.*invalidTemplateName.*'