in reply to how to check whether a particular word exists in filename

Or you could simply do this at the command line:

$ ls your/path/to/directory/ | grep .txt | grep CHECK