[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] The Code-Red Worm is attacking... GOD it's attacking.



> > Basically is searches for all occurances of the term ".ida" in the httpd
log
> > and then displays that number
>
> Not quite right, sorry. It actually looks for a regexp containing some
> character and the string 'ida' behind it. So it would match for

yes you are correct !!

>
> And many more. Actually, the command should look like this (omit the
> cat!):
>
> grep '\.ida' /var/log/httpd/access | wc -l

How about this :

grep -c '\.ida'  /var/log/httpd/access

>>>>>>> Basic unix 101<<<<<<<