20130316create

こういうログを集計するよ

#!/bin/bash




export LOG="sample.log"




echo -- TIME -- linecount -- total -- average -- zerototal 

201303160001 TOMATO TOKYO 0 
201303160001 TOMATO TOKYO 0
201303160002 ICHIGO TOKYO 3
201303160003 ICHIGO TOKYO 1
201303160004 TOMATO OOSAKA 3
201303160004 TOMATO TOKYO 4 
201303160004 TOMATO NAGOYA 4
201303160004 TOMATO TOKYO 1
201303160004 TOMATO FUKUOKA 4
201303160005 TOMATO FUKUOKA 1