sed 's/1.$/&th/;s/1$/&st/;s/2$/&nd/;s/3$/&rd/;s/[0-9]$/&th/'
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page