Q: List of all manual entries

Q: List of all manual entries

Post by xiaodong di » Fri, 24 Jun 1994 02:02:00



Hi netters,

I have a question regarding to the 'man' command.
Can I get a list of all manual entries which are
accessible bye 'man' ?

Thank you

-ding

 
 
 

Q: List of all manual entries

Post by Bill Zvonar bmerta » Fri, 24 Jun 1994 02:58:53


Look for a file called /usr/lib/whatis.  Maybe it's just an HPUX thing,
but on my machine it has all of manual entries listed in it (I believe
'man -k' uses it).

Bill...

    xiaodong> Hi netters, I have a question regarding to the 'man'
    xiaodong> command.  Can I get a list of all manual entries which
    xiaodong> are accessible bye 'man' ?

    xiaodong> Thank you

    xiaodong> -ding
--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-==-=-=-=-=
Bill Zvonar             Bell Northern Research, Ottawa, Ontario, Canada

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

 
 
 

Q: List of all manual entries

Post by Dave Carrig » Fri, 24 Jun 1994 11:10:57



>I have a question regarding to the 'man' command.
>Can I get a list of all manual entries which are
>accessible bye 'man' ?

If you saw my earlier solution, forget it; this one is even better :-)

#! /bin/sh
for man in `echo ${MANPATH:-/usr/man} | sed "s/:/ /g"`; do
   if [ -f $man/whatis ]; then
      cat $man/whatis
   else
      ls $man/man* | sed -e '/:$/d' -e '/^ *$/d' -e 's/\.\([^.]*\)$/ (\1)/'
   fi
done

--
                                ^

Dave Carrigan                  /|\            Northern Forestry Centre
                                |

 
 
 

Q: List of all manual entries

Post by Syed Zaeem Hosa » Sun, 26 Jun 1994 00:34:58




>>I have a question regarding to the 'man' command.
>>Can I get a list of all manual entries which are
>>accessible bye 'man' ?

>If you saw my earlier solution, forget it; this one is even better :-)

>#! /bin/sh
>for man in `echo ${MANPATH:-/usr/man} | sed "s/:/ /g"`; do
>   if [ -f $man/whatis ]; then
>      cat $man/whatis
>   else
>      ls $man/man* | sed -e '/:$/d' -e '/^ *$/d' -e 's/\.\([^.]*\)$/ (\1)/'
>   fi
>done

Couple other things you can also do (these work on my Sun workstation
running SunOS for example):

1. Build the /usr/man/whatis file using "catman" (do a "man catman" to
see what to do). Then simply doing a "more /usr/man/whatis" will give
you all the one line summaries. You *have* mentioned this above as one
of the items in your shell script, but I wanted to make sure that you
remembered to build the whatis file first, using "catman".

2. Each of the man sections usually has a List of the available info in
them. So, for SunOS 4.1.3 at least, and depending on the man section
you want, you can do the following:

        man 1 List

to get the commands for section 1. Similarly, "man 2 List" will give
you the command listings for the other sections, etc.

                                                                Z

--
-------------------------------------------------------------------------
| Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |

-------------------------------------------------------------------------

 
 
 

1. Deleting entries froma file from a list of entries

        I have a file containing a list of usernames, and I want to edit the
shadow files and passwd files so that these usernames(and all other
information pertaining to the particular user) are deleted from the file.
I know that there is a way in sed to do this, but I am not very well
versed in sed.  

Paul White

2. su behavior

3. where are the manual entries ?

4. Help with retrieving bad partition required.

5. manual-entry & AIX

6. ADAC RAID controller

7. Want information on the man macros/How to write manual entries?

8. HP-Unix

9. No manual entry for dynamic_cas

10. : 'man'- error : No manual entry for safe.n

11. Trying to use ssh with keys instead of manual password entry

12. background manual-entry in Emacs

13. No manual entry for <any_unix_command>