Need help finding a file where a pattern exists and the file has a timestamp

So, I know how to do some of this stuff on an individual level, but I'm drawing a blank as to how to put it all together.

I have a pattern that I'm looking for in a log file. The log file I know came in yesterday, so I want to limit the search to that day's listing of files. How would I do this?

I've tried using two piped greps but that doesn't seem to get me anything, obviously I'm extremely new to this.

Here's the pattern I'm using

grep <pattern I'm looking for> <filename prefix>* | grep '<Yesterday's Date>'

Thanks for any help in advance.

find /path/to/logs -type f -name 'prefix*' -mtime -2 -exec grep -l 'pattern' {} \;

Is this a ksh command? I tried it and I get a prompt.

Typo - my bad. See the red text above. And yes it runs in ksh.

Thanks that worked.

---------- Post updated at 02:20 PM ---------- Previous update was at 02:19 PM ----------

I would guess that if I wanted to look at zipped files I would replace grep with zgrep?

Yes, use zgrep.