Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • dos2unix will just clear out the ^Ms, it won't help with the ansi coding that got recorded. Commented Jan 20, 2015 at 5:46
  • Thanks sree, but this has just removed the ^M characters. What about ^H,^G and some other junk characters? Commented Jan 20, 2015 at 5:47
  • @Dharmendra, updated the answer. Please take that as an example to remove junk characters other than ^H and ^G. Commented Jan 20, 2015 at 6:32
  • ^H is backspace, won't removing them alter the semantics of the record? (i.e. ha^Hi is becomes hai when it should be hi) Commented Jan 20, 2015 at 6:42
  • Yes, @Sree but still that is not working for "^[[m^[]0;" or "[1P". Anyway Thanks. Commented Jan 20, 2015 at 6:42