I'm trying to post-process the output of
script into a more readable form, similar to Removing control chars (including console codes / colours) from script output, but I've noticed that
col doesn't always work.
$ cat -v uncolored foo^H^H^Hbfoo^H^H^Hafoo^H^H^Hr^M $ col -bp < uncolored baroo
col -bp output just
bar? Where are the extra two
os coming from?