#!/bin/ksh # # analyze the logfile for hostname... # RCW 11/19/94 # awk '{print $8}' log.access | sort -n | uniq -c | while read count host do name=`nslookup -retry=1 -timeout=5 $host hplabs 2>/dev/null | grep "Name:"` if [ $? = 0 ] then print $count $name $host fi done | sort -n