[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.
- Subject: Re: [cobalt-users] The Code-Red Worm is attacking... GOD it's attacking.
- From: "Danny Daniels" <dcd@xxxxxxxxxxxxxxxxxx>
- Date: Fri Jul 20 12:11:43 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> > 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<<<<<<<