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.