(G)AWK scripts

non-trivial AWK and GNU AWK scripts I've written