How can I either strip the following character sequences from my files?
^[[1;64r etc or avoid having expect add them in the first place?
I'm using a collection of expect scripts for certain tasks.
The output files I'm collecting often contain the above type of characters (as displayed in emacs / vi / cat -v). I've tried a number of tr commands like the following but it only makes the [64;8H etc visible.
tr -dc '[:print:]\n' < input
The results from above on a problematic line