On Wed, 3 Apr 2002, Duke Hillard wrote: > > In a Unix shell environment (including Cygwin), it's not > difficult to count the number of unique hosts from a log. > Something similar to the following should work fine. > > cut -d" " -f1 /dir/subdir/server.log > /dir2/somefile.txt > sort -u -o /dir2/anotherfile.txt /dir2/somefile.txt > grep -c "." /dir2/anotherfile.txt >
But note that this will count hosts with only failed requests. The number analog reports is the number with successful requests. -- Stephen Turner, Cambridge, UK http://homepage.ntlworld.com/adelie/stephen/ "This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01 +------------------------------------------------------------------------ | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to | http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at | http://www.mail-archive.com/[email protected]/ | http://lists.isite.net/listgate/analog-help/archives/ | http://www.tallylist.com/archives/index.cfm/mlist.7 +------------------------------------------------------------------------
