Hey sluggers,
I need to look at a particular machines web hits.. I am currently using:
cat /usr/local/squid/logs/access.log |grep 1.2.3.4 |cut -f4 -d"/" >
logfile.txt
This outputs something like:
www.reallynaughtysite.com
www.smackmeimbad.com
and so on....
The problem is that it has many double ups... are there a long confusing
string of commands that will go through my logfile and remove all but one
instance of every domain listed?
Thanks,
Jarrod.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug