On Thursday 31 July 2003 10:16 pm, Jim_Brouse/[EMAIL PROTECTED] wrote:

> I  tried the below script although it did give back a file it only had one
> entry in it.  What I am interested in is all IP addresses that visited a
> particular domains site and subdomains of that site.

Try a simpler version:

grep -c " http://www.website.net"; access.log

will tell you how many accesses there were to the site

grep " http://www.website.net"; access.log | tr -s ' ' | cut -d' ' -f3

will give you a list of the IPs that visited it

If you want a list showing each IP only once, no matter how many visits it 
made:

grep " http://www.website.net"; access.log | tr -s ' ' | cut -d' ' -f3 | sort 
-n | uniq


Antony.

-- 

How I want a drink, alcoholic of course, after the heavy chapters
involving quantum mechanics.

 - 3.14159265358979

Reply via email to