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

Scott Wood treii28 at yahoo.com
Thu Nov 25 10:06:47 EST 2004


I wasn't sure, but there are some commands like 'less' and such that will try
to auto detect common compressed formats.  You might also want to look into
some of the stuff on that pager program as you can search in there as well just
by hitting the '/' key.  Of course, if you are going over mutiple files at once
(globbing with '*') you need to know how to navigate through the files in your
pager.

SW

--- Richard Harding <rick at ricksweb.info> wrote:

> Never mind, just grepping the files as if they were normal text files 
> searched the headers for who the messages were to. I am sorry to waste 
> everyone's time...guess I need more sleep. :-)
> 
> Rick
> 
> Richard Harding wrote:
> 
> > 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
> > _______________________________________________
> > Members mailing list
> > Members at kalamazoolinux.org
> > 
> 
> 
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Members mailing list