search the entire man pages

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users search the entire man pages
# 8  
Old 10-11-2011
Originally Posted by fpmurphy
Methyl is on the right track. This is how it is normally done. See Ubuntu Manpages and Fedora Manpages for examples. Both use custom Google search on manpages that were converted to HTML format.
Is firefox complaining to anyone else that this is a Reported Attack Page!? I have used this site a million times and now it feels like complaining.
# 9  
Old 10-18-2011
Hi Folks,
Below is a script I knocked up to search man pages on both Solaris and Linux systems. It's not pretty but functions ;-)
(Tested on Solaris 10 and RHES)

MANPATH environment variable is required as it will iterate through each path.

`which bash` <searchword>

if [ "${argv}" == "" ]
        echo "Usage: <keyword>"
OS=(`uname -s`)
if [ "${MANPATH}" == "" ]
        echo "MANPATH is not set"
for i in ${MANPATH//:/ }
        echo "Searching ${i}"
        if [ "${OS}" == "SunOS" ]
                find ${i} -follow -exec grep -n " ${argv} " /dev/null {} \;
        elif [ "${OS}" == "Linux" ]
                find ${i} -exec zgrep -R --include=*.gz -H " ${argv} " . {} \;
                echo "Unknown system ${OS}"

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Man pages for Pthreads

"how to see the man pages related to pthreads". while executing the command man pthread_t . im getting the following error!!!!! No manual entry for pthread. (3 Replies)
Discussion started by: Muthukumar U
3 Replies

2. HP-UX

Looking for some man pages.

Can anyone supply me with the man pages for: omnidatalist omnibarlist omnisap.exe I prefer the source man pages in nroff format. A clue about the software bundles which supply these man pages is fine as well. OS: HP-UX TIA (11 Replies)
Discussion started by: sb008
11 Replies

3. Solaris


Hi everyone, I have a small query, in solaris the man pages get displayed on half of the terminal , can i get a full terminal or full screen display ?:) (2 Replies)
Discussion started by: M.Choudhury
2 Replies

4. SCO

man pages are gone. Anyone know how to resore it?

Not sure what I did but I can use man pages anymore here is what i get pictureb # man ls man: ls not found Any info will be appreciated. SCO 6 Openserver (2 Replies)
Discussion started by: miles556
2 Replies

5. UNIX for Dummies Questions & Answers

man pages

When reading man pages, I notice that sometimes commands are follwed by a number enclosed in parenthesis. such as: mkdir calls the mkdir(2) system call. What exactly does this mean? (4 Replies)
Discussion started by: dangral
4 Replies

6. UNIX for Dummies Questions & Answers

man pages

Hi folks, I want to know all the commands for which man pages are available. How do i get it? Cheers, Nisha (4 Replies)
Discussion started by: Nisha
4 Replies

7. UNIX for Dummies Questions & Answers

man pages

Hi, I've written now a man pages, but I don't knwo how to get 'man' to view them. Where have I to put this files, which directories are allowed?? THX Bensky (3 Replies)
Discussion started by: bensky
3 Replies

8. UNIX for Dummies Questions & Answers

man pages creating

Hi, I wnat to create my own man pages, but I can't find a good description of the troff language. Knows somebaody a good docu including examples?? Thx Bensky (2 Replies)
Discussion started by: bensky
2 Replies

9. UNIX for Dummies Questions & Answers

Man pages

Hello , I just installed openssh in my system . I actually tried to man sshd but it says no entry , though there is a man directory in the installation which have the man pages for sshd . Can anyone tell me how should i install these man pages . DP (2 Replies)
Discussion started by: DPAI
2 Replies
Login or Register to Ask a Question