[KLUG Members] method of grep list of .gz files?

Richard Harding rick at ricksweb.info
Wed Nov 24 22:27:05 EST 2004


I have set up a postfix mail server with amavis-new and spamassassin and 
it quarantines spam and saves them as these spam-MESSAGSEID.gz files. I 
want to check and see if any of these are from a specific user account 
and am looking for a way to grep USERNAME *.gz in that directory.

I had seen on another site using zcat for some messages, but it doesn't 
work for .gz files. Does anyone know a way I can accomplish this short 
of unzipping all of the files into /tmp and then greping them all from 
there?

Thanks

Rick


More information about the Members mailing list