:1 y/0123456789/\x09012345678/ s/\w/&-/g t1 : s/-\{37\}/\x0b/ s/-\(\x09\x0b*\)/\1----------/ t s/\W*/&Azyxwvutsrqponmlkjihgfedcba9876543210 / s/\S\{36\}\(.\).* /\1/ y/\x0b/-/ /-/b s/\x09*//
Note that non-ascii characters in the above source code will be escaped (such as \x9f).