I need to search our mail logs for a specific e-mail address. We keep a current file named maillog as well as a week's worth of .bz2 files in the same folder. Currently, I'm running the following commands to search for the file:
grep firstname.lastname@example.org maillog bzgrep email@example.com *.bz2
Is there a way combine the
bzgrep commands into a single output? That way, I could pipe the combined results to a single e-mail or a single file.