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

Re: grepping man pages

by guillaume (Pilgrim)
on Aug 18, 2001 at 10:32 UTC ( #105888=note: print w/replies, xml ) Need Help??


in reply to grepping man pages

man pages are under a format that can be read by groff. you could get the ascii text of a man page by doing this:
open(MAN, "groff -Tascii $manpath/$manfilename |") or die"ERROR:$!\n"; @manpage = <MAN>;
where $manpath is the path to your man pages ('/usr/local/man/' on my system).

$manfilename is the particular man page you are trying to get.

Look around the directory, you will understand how the files are stored.

Hope that helps,
Guillaume

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-05-17 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?