http://takeno.iee.niit.ac.jp/~shige/misc/script/awk-mini.html