I'm sure this is an age old question with a simple answer, but I've tried every combination I know to try and haven't come up with anything. And searching Google is less than pleasant since searching this topic comes up with hundreds of way to "find yesterday's date using the date command".
Anyway, I am trying to use find to select a list of files that were modified yesterday. The goal is to select yesterday's log files out of a directory to do something specific with them. The directory contains multiple days of log output.
The best I can get is find returning yesterday's files WITH today's files listed as well. I do not want to see today's files -- just yesterday.
I will also throw in the gotcha: this is AIX find, NOT the GNU find you'd find in most Linux distros. So
-daystart is not an option available to me. (Thought of that one already!)
Anyone know an effective way to list out yesterday's files using find on AIX?