On 2 Dec 2004 at 14:57, Bill Landry wrote:
Very kool. I really tried to do this and figured there was no way!
Thanks!
-Nick

> Well, here is a bit a trickery to make it a single liner:
> 
> egrep "File\(|Scanned: (Virus|Error)|Skipping" l:\virus\vir1201.log |
> gawk "{print $1,$4,$5,$6}" | sed "s/\/2004 / TOTAL\n/g" | egrep
> "File|TOTAL" | gawk "{print $(NF-0)}" | usort | uniq -c
> 
> Which will give you an output like: 
> 
>    735 INFECTED
>   37023 TOTAL
> 
> You will need to adjust the path info to you log files, and can
> manipulate the output to your liking, but this should give you a
> starting point to work with...
> 
> Bill
> 
> ---
> [This E-mail was scanned for viruses by Declude Virus
> (http://www.declude.com)]
> 
> ---
> This E-mail came from the Declude.Virus mailing list.  To
> unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
> type "unsubscribe Declude.Virus".    The archives can be found
> at http://www.mail-archive.com.
> 


---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]

---
This E-mail came from the Declude.Virus mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.Virus".    The archives can be found
at http://www.mail-archive.com.

Reply via email to