OldManRiver Posted July 24, 2010 Share Posted July 24, 2010 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 More sharing options...
mentalist Posted July 24, 2010 Share Posted July 24, 2010 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 Link to comment https://forums.phpfreaks.com/topic/208764-searching-manpages-with-code/#findComment-1090625 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.