in reply to Question about tr

\0, \1, \2, etc. are NOT hexadecimal character codes, but OCTAL. For what you intended, you'd need \10 or \x8, or what nysus wrote. "Accidently", 0 - 7 octal and hexadecimal are the same.

Update: And, this part \n\0x0B\r\0x0D is wrong - \r is not 0xC but 0xD, so you're skipping chr(12) and have a double chr(13).

Replies are listed 'Best First'.
Re^2: Question about tr
by ikegami (Patriarch) on Oct 20, 2018 at 02:14 UTC

    And \0xXX should be \xXX. The former means NUL and three other chars.