delphij's Chaos

选择chaos这个词是因为~~实在很难找到一个更合适的词来形容这儿了……

01 Apr 2004

How many viruses found in the March?

# cat clamd.log.0 | grep FOUND | awk '{print $2;}' | sort | uniq -c | sort -rn 
5246 Worm.SomeFool.Gen-2
4049 Worm.SomeFool.Gen-1
1276 Worm.SomeFool.P
1039 Worm.Gibe.F
 258 Worm.Mydoom.F
  92 Worm.Bagle.Gen-zippwd
  49 Worm.SomeFool.M
  42 Worm.SCO.A
  28 Worm.SomeFool.Q
  17 Worm.SomeFool.I
  17 Worm.Dumaru.K
  12 Worm.Dumaru.A

  10 Worm.Bagle.Gen-zippwd-2
   9 Worm.Bagle.P
   7 Worm.Bagle.Gen-1
   6 Worm.Gibe.F.UPX.2
   6 Worm.Dumaru.Y.enc
   4 Worm.Mydoom.H
   3 Worm.Bagle.N
   2 Worm.Gibe.F.UPX.3
   2 Worm.Dumaru.G
   2 Worm.Bagle.Gen-2
   2 Exploit.HTML.Bagle.Gen-3-eml
   2 CIH
   1 Worm.Sobig.E
   1 W98.Hybris.E
   1 Exploit.IFrame.Gen
   1 Exploit.HTML.Bagle.Gen-8-eml
   1 Exploit.HTML.Bagle.Gen-7-eml

Archived: 1 Comment

sco | May 5, 2004 6:37 AM

Save yourself two pipes:

awk ‘/FOUND/{print $2;}’ clamd.log.0 | sort | uniq -c | sort -rn