BEGIN { print ".SH" print ".CE 1" printf("\\s+9Seating Plan\\s0\n") print ".LP" system("date '+%Y-%m-%d %H:%M'") print ".sp 2" print ".PS 6i" print "down" } { printf("box \"%s\"\n", $0); } NR == 8 { print "move right" } NR == 12 { print "move right; up" } END { print ".PE" }