On 2004-04-02, Rick Macdougall wrote: >> grep FOUND clamd.log | awk '{print $8}' | sort | uniq -c | sort -k1nr,1 >> >Appears to be faulty due to spaces in the name of the file, I get >entries like
Might be, use something like grep FOUND clamd.log | cut -d: -f4 | awk '{print $1}' | sort | uniq -c | sort -k1nr,1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Where '^^^' part is responsible for getting virusname out of clamd.log. Or better use perl =) s. -- (0> Jakub Jankowski [url]: s.atn.pl "Nawet w Krainie Czarow //\ [EMAIL PROTECTED] [rlu]: 174516 latwiej jest spotkac V_/_ [EMAIL PROTECTED] [ekg]: 921514 Babe Jage niz Alicje" Fingerprint: FCBF F03D 9ADB B768 8B92 BB52 0341 9037 A875 942D ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users