Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!csri.toronto.edu!wayne From: wayne@csri.toronto.edu (Wayne Hayes) Newsgroups: news.newusers.questions Subject: Re: How to get all descriptor lines from man? Message-ID: <1989Sep17.145110.16126@jarvis.csri.toronto.edu> Date: 17 Sep 89 18:51:11 GMT References: <31933@ames.arc.nasa.gov> <1989Sep16.191339.8597@twwells.com> Distribution: usa Organization: University of Toronto, CSRI Lines: 18 >In article <31933@ames.arc.nasa.gov> gahooten@titan (Gregory A. Hooten) writes: >: I was trying to find a way to get all of the descriptor lines from the man >: pages in Unixa BSD 4.3. I know there is a function that allows the >: descriptor line from a chosen subject, but I want all subjects. Easy. "man -k xxx" finds all descriptions of manual entries with "xxx" in them (Keyword search). The trick is to realize that man -k uses a regular expression search. (or at least mine does... on second thought yours might not... in that case search for something that occurs in every description, like a bracket "(" or ")".) A regular expression's "wildcard" is a period (.) so I use "man -k ." -- You know, judge each person on their own merits and faults without prejudice. I know that may sound naive and, you may argue that the world is not really like that, yet, someone must start trusting sometime. -- Andy Philips Wayne Hayes INTERNET: wayne@csri.toronto.edu CompuServe: 72401,3525