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 person@domain.com maillog
bzgrep person@domain.com *.bz2


Is there a way combine the grep and bzgrep commands into a single output?  That way, I could pipe the combined results to a single e-mail or a single file.


Question: Using regular expressions to find img tags without an alt attribute
Answer: This worked for me.

^&lt;img(?!.*alt).*$


This matches any string beginning with &lt;img that doesn't contain any number of characters before an alt attribute.  It even works for src="&lt;?php echo $imagename; ?&gt;" type of attributes.