[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: *nice* maillog output



On Tue, Jun 22, 2004 at 08:25:55PM +0100, Craig Tinson wrote:
> Date: Tue, 22 Jun 2004 20:25:55 +0100
> From: Craig Tinson <craig 8010 co uk>
> To: fedora-list redhat com
> Subject: *nice* maillog output
> Reply-To: For users of Fedora Core releases <fedora-list redhat com>
> 
> this is probably asking a bit much.. but no harm in asking..
> 
> I currently have a spare 14" monitor connected to the mail server so I 
> can monitor whats going on..
> 
> it is permanently running the following:
> 
> tail -f /var/log/maillog | grcat conf.log

??? grcat
Is this grcat as in  /usr/libexec/awk/grcat

> 
> is there an obvious/easy way to trim it.. for example:
> 
> Jun 22 - (20:19:26) Mail From: <someone somedomain com> to 
> <craig 8010 co uk> (Clean)
> Jun 22 - (20:20:30) Mail From: <someone somedomain com> to 
> <craig 8010 co uk> (Spam)

How about sed and awk/gawk.


-- 
	T o m  M i t c h e l l 
	/dev/null the ultimate in secure storage.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]