Listing 2. Web Server Log Analysis

#!/bin/sh
(header host
awk '{ print $1; }' ) |
addcol n | compute 'n=1' |
sorttable host | subtotal host -t n |
sorttable -n -r n |
head -7 | justify