define n endef 1=1st 2=2nd 3=3rd s=$(subst $n,th$n,$(STDIN)) $(foreach x,1 2 3,$(eval s:=$$(subst 1$$$x,1$xth,$$(subst $xth,$$$x,$$s))))$(info $s)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page