#Fri Mar 8 14:57:35 PST 1996 addr: 152.163.193.26 query: pid: 25493 cat log.access.old | awk ' { dec_date = $6+month_to_frac($2) if (dec_date < 2001) { print dec_date } } function month_to_frac(month) { if (month == "Jan") { return(0) } else if (month == "Feb") { return(1/12) } else if (month == "Mar") { return(2/12) } else if (month == "Apr") { return(3/12) } else if (month == "May") { return(4/12) } else if (month == "Jun") { return(5/12) } else if (month == "Jul") { return(6/12) } else if (month == "Aug") { return(7/12) } else if (month == "Sep") { return(8/12) } else if (month == "Oct") { return(9/12) } else if (month == "Nov") { return(10/12) } else if (month == "Dec") { return(11/12) } } ' | sort | uniq -c | awk '{print $2, $1}' | sort -n