Data stream from ssh server, has some special char, like backspace, cursor move, When I write it to file, then cat it,
$ cat /tmp/cmd.text
ifconfig
Then I use vim Open it, I get
$ vim /tmp/cmd.text
whoa^H^[[Kami^H^[[K^H^[[K^H^[[K^H^[[K^H^[[K^H^[[Kifconfig
How can I parse these string ?