in reply to Removing characters
It's a big mistake to remove the ^H characters first and then to try to strip the doubled letters, because by removing the ^Hes, you've thrown away the information about which double letters should be stripped. What you want is to take the output from man and simply do this:
That's all. nroff also uses _^Hx to indicate an underlined x character, and this will fix that also.$text =~ s/.\cH//g;
The other right solution was the one that mr.nick suggested: Use the col -b command to filter out the reverse motions before saving the output.
|
|---|