Index: common.awk =================================================================== --- common.awk (nonexistent) +++ common.awk (revision 17183) @@ -0,0 +1,7 @@ +function cat(fn ,tmp) +{ + close(fn) + while((getline tmp < fn) == 1) + print tmp + close(fn) +} Index: gen.sh =================================================================== --- gen.sh (nonexistent) +++ gen.sh (revision 17183) @@ -0,0 +1,4 @@ +#!/bin/sh + +gawk -f common.awk -f table.awk -F "[\t]" < general.tsv + Property changes on: gen.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: general.tsv =================================================================== --- general.tsv (revision 17182) +++ general.tsv (revision 17183) @@ -2,7 +2,7 @@ 2017-07-27 5 - Anonymous 2017-07-27 24 - Ronald Miloh Alexander 2017-07-27 24 - celem -2017-07-27 15 - John Griessen, Cibolo Ecosensory blog.kitmatic.com +2017-07-27 15 - John Griessen, Cibolo Ecosensory blog.kitmatic.com 2017-07-27 10 - Ade 2017-07-27 50 - Evan Foss 2017-07-28 -100 - transfer Index: table.awk =================================================================== --- table.awk (nonexistent) +++ table.awk (revision 17183) @@ -0,0 +1,30 @@ +BEGIN { + cat("page_head.html") + print "" + print "" + print "" +} + +/^#/ { next } + +{ + subp=$3 + sum += ($2+0) + if ((subp == "-") || (subp == "")) + subp = " " + print "" + print " " +} + + +END { + print "" + print "

Donation Records

" + print "
DateNamesubprojectAmount Accumulated
" $1 + print " " subp + print " " $4 + print " " $2 + print " " sum + print "
" + cat("page_foot.html") +} \ No newline at end of file