#!/bin/rc # print a plan9 timezone file in human readable form if (~ $#* 0){ echo 'usage: tzdump ...' exit 'usage' } awk ' NR == 1 { printf("STD: %s = UTC%+d\n", $1, $2); printf("DST: %s = UTC%+d\n", $3, $4); } NR != 1 { for (i = 1; i <= NF; i++){ printf("%-8lu ", $i); system(sprintf("date %d", $i)); } } ' $*