#!/bin/sh gawk ' @include "scripts/getcls.awk" BEGIN { FS = "\t" } { printf "trX { td .missing colspan=\"1\" {-%s}", $1 split($2, a, / /) for (i = 1; i <= length(a); i++) printf "td .%s colspan=\"2\" {-%s}", getcls(a[i]), $3 print "}" } END { print "__MARKER__" } ' data/world/pds.us \ | scripts/last-of-design.sed