grep "Alexa Toolbar;" /path/to/server/log/file.log | sort | uniq -W 1 | wc -lwould give the number of unique IP addresses visiting MeFi who have "Alexa Toolbar;" in their useragent. Divide by total unique IPs and you have a percentage.
discardedlies:~# grep "Alexa Toolbar" /var/log/lighttpd/access.log | sort | uniq -W 1| wc -l 4 discardedlies:~# cat /var/log/lighttpd/access.log | sort | uniq -W 1| wc -l 3469posted by evariste at 5:06 PM on July 2, 2006
*Allusion intentional.
posted by evariste at 5:37 PM on July 1, 2006