Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

redirection of man pages

by ashok (Sexton)
on Apr 11, 2001 at 05:38 UTC ( [id://71568]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://71568]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-23 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found