in reply to Removing characters

If you're redirecting output from man, you don't want to remove the ^H first, it's valuable information. Something like:

% man ls | perl -pe 's/.^H//g;' > foo

will remove both the ^H and the duplicate character at the same time.

Replies are listed 'Best First'.
Re: Re: Removing characters
by mr.nick (Chaplain) on Jan 09, 2001 at 01:39 UTC
    If you are really trying to get plain-text output from man, you should use the standard method of doing so:

    $ man ls | col -b > man-ls.txt
Re: Re: Removing characters
by japhy (Canon) on Jan 09, 2001 at 01:44 UTC