# # Generate workshop participants lists # BEGIN { FS=";" while (getline < "Head.html" != 0) Head[++Nhdln] = $0 close "Head.html" while (getline < "workshops.csv" != 0) workshops[$1] = $0 close "workshops.csv" # read in the footer while (getline < "Foot.html" != 0) Foot[++Nftln] = $0 close "Foot.html" } { if (lastfld1!=$1) { if ($1!=1) { print "" > wsfilename print "" > wsfilename print "" > wsfilename # insert the footer for (i=1; i<=Nftln; i++) print Foot[i] > wsfilename print "