Looks like my previous posting on this topic didn't make it to the list... ---------- Forwarded Message ----------
Subject: Re: [Clamav-users] Re: Application to generate CLAMAV report Date: Fri, 26 Mar 2004 19:28:14 +0000 From: Antony Stone <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] On Friday 26 March 2004 5:39 pm, Craig Daters wrote: > Let me preface this by stating that I am a newbie with using the > commands below, I have only ever used grep to locate simple things, I > have not used any of the others... > > So how come when I enter the commands below, I get an error that > says: "grep: unknown directories method"? Try starting with the simple grep command, then add each command with its pipe symbol one at a time until something breaks (or, hopefully, it all works). Note that the grep command here *is* very simple, so it is no different from the sort of thing you have used it for in the past. All the remaining lines are commands which the output is piped to, not a more complicated grep... > >> grep FOUND /var/log/messages \ > >> > >> | cut -d ":" -f 5 \ > >> | sed -e "s/\ FOUND//" \ > >> | sort \ > >> | uniq -c \ > >> | sort -r So, start off with just: grep FOUND /var/log/messages This should generate lots of lines of output, but no error. Assuming that works, add the next command and test again: grep FOUND /var/log/messages | cut -d ":" -f 5 (or split it as shown above with a "space-backslash" at the end of the first line) Then add more commands one at a time (you will suddenly get a whole lot less lines once you add the "uniq" command) and hopefully all will become clear... Regards, Antony. -- People who use Microsoft software should be certified. Please reply to the list; please don't CC me. ------------------------------------------------------- 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