ashok has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am finding a different problem when I redirect a man page on linux. for ex:
man bash > bash.txt
causes unprintable control characters (^H) and each character is repeated in the bash.txt file. I need your help in this. I have searched with 'redirection' and could not get proper link. I remember this is posted once. Pl. suggest me if any regular expression in perl is required to avoid this problem.
Thanks
Ashok

Replies are listed 'Best First'.
Re: redirection of man pages
by Daddio (Chaplain) on Apr 11, 2001 at 05:50 UTC
    I think this is the node you were looking for... Hope that helped.
Re: redirection of man pages
by idnopheq (Chaplain) on Apr 11, 2001 at 05:52 UTC
    From the man manpage off my RedHat box:

    To get a plain text version of a man page, without
    backspaces and underscores, try

    # man foo | col -b > foo.mantxt

    or are you looking for a pure-perl way?

    HTH,
    Dex

    UPDATE: - I hate it when others can search more precisely than me! Removing characters, pointed out by Daddio.