1*9a7741deSElliott Hughes{ print (substr($2,1,1) > substr($2,2,1)) ? $1 : $2 } 2*9a7741deSElliott Hughes{ x = substr($1, 1, 1); y = substr($1, 2, 1); z = substr($1, 3, 1) 3*9a7741deSElliott Hughes print (x > y ? (x > z ? x : z) : y > z ? y : z) } 4