#!/bin/awk -f # $Id: lal_show.awk 1 2006-08-08 20:01:00Z unicinfo $ # Copyright (c) 2006 Kurt M. Brown. # This file is subject to the terms and conditions of the GNU General Public # License. See the file COPYING for more details. BEGIN { } function dump(a, letter) { for (i = 1; i < a; ++i) if (i % 10) printf("%s", letter); else printf("|"); } { #t = strftime("%Y-%m-%d %H:%M:%S", $1); t = strftime("%H:%M", $1); printf("%s %3.2f ", t, $4); a = int(100*$4/2); if (a > 200) dump(70, "@"); else if (a > 70) dump(70, "+"); else if (a < 11) dump(a, "."); else dump(a, "*"); printf("\n"); }