I have text files that include the ANSI movement codes ESC[xC and ESC[xD. I want to filter these out but with each line output with those codes taken into account.
Consider the line:
this cat is greenESC[12DdogESC[4Cwhite
I would like this piped out as
this dog is white
Above ESC means the escape code \0x1b (or \033).