Jump to content

Searching ManPages with code


OldManRiver

Recommended Posts

All,

 

Hey looking for some code that will let me automate searching the Linux and Ubuntu Man Pages for specific applications.

 

Anyone know of code or a way to do this?

 

I found a "dman" script on the Ubuntu help pages, that uses the "wget" command, but since I need this to work for all OSs, I need to stay away from specific Linux shell commands.

 

I was looking around and think the:

 

$lines = file(URL)

 

might work?  Just not sure, since I need to let the search do a wildcard search to find the right manpage.

 

Would appreciate some direction here, never tried URL interrogation before.

 

Thanks!

 

OMR

Link to comment
https://forums.phpfreaks.com/topic/208764-searching-manpages-with-code/
Share on other sites

A number of years ago I wrote a Python app which converted man pages into web page formats.

 

Basically the file is contained within a .gz archive.

Then parse the data according to the rules you extrapolate from the following...

 

http://www.linuxjournal.com/article/1158

http://linux.die.net/man/7/groff

http://linux.die.net/man/7/roff

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.