So I need to locate an old email that was corrupted in a recent email outage. I need to match specific date, senders name, and message recipient. The metadata has been damaged so I can't load it back into our mail server.
Using find and grep- I have not found a way to return only a list of files that contain each of the string members I specify. Assistance is greatly appreciated.
grep -rnw '/path/to/files/' -e 'ToName|April 18|FromName|string'
and
find /path/to/files/ | xargs grep "ToName|April 18|FromName|string" -sl
[link][6 comments]