BEGIN { inits(w,9); for(i in w) { split(i,tmp,SUBSEP) print tmp[1] " " tmp[2] " " w[i] | "sort +0 +1" } }