#! /bin/csh
# get the number of different hosts you have...
# 93 -- by DL -- v1.2
# usage : counthosts userlogfile , or cat userlogfile | counthosts
awk '{logid=$8; pa=index(logid,"@"); print substr(logid,pa,length(logid)-pp) }' $1 | sort -uf |wc -l
