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"?

Ralph Angenendt wrote:

[...]

     grep FOUND /var/log/messages \
     | cut -d ":" -f 5 \
     | sed -e "s/\ FOUND//" \
     | sort \
     | uniq -c \
     | sort -r

 This gives us the following output (yes, no percentages, one might hack
 that into it):

    9353  Worm.SomeFool.Gen-1
    3647  Worm.SomeFool.P
    2312  Worm.SomeFool.Gen-2
     912  Worm.Sober.D
     521  Worm.Dumaru.A
     174  Worm.SomeFool.I
      55  Worm.Mydoom.F
      53  Worm.Dumaru.K
      39  Worm.Dumaru.Y
      35  Worm.Bagle.Gen-zippwd
      23  Worm.Bagle.Gen-1
> [...]

-- --

Craig Daters ([EMAIL PROTECTED])
Systems Administrator
West Press Printing
1663 West Grant Road
Tucson, Arizona 85745-1433

Tel: 520-624-4939
Fax: 520-624-2715

www.westpress.com

--


------------------------------------------------------- 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

Reply via email to