LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-12-2004, 06:14 AM   #1
suguru
Member
 
Registered: Dec 2003
Location: Voluntarily move into diaster relief areas.
Distribution: Upgraded from Suse 10 to Ubuntu.
Posts: 104

Rep: Reputation: 15
Search all man pages for a phrase


zgrep "my long phrase" /usr/share/man/*/*
was my best shot at searching all manpages for a phrase
but it didn't work for me on live Knoppix 3.4

Can someone please edit this cli so that it will find everything
I put between quotes in all man pages?
 
Old 09-12-2004, 06:38 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
This works:

man -k <word> | grep -i <more words>

Example:

man -k user | grep -i 'account'

Hope this helps.

edit
If you install new software on a regular base, you might need to run makewhatis to update the manpage database. This is used when you use mans -k flag.

Last edited by druuna; 09-12-2004 at 06:39 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ man pages Guest1234 Linux - Newbie 2 06-29-2008 09:12 AM
Which command to search text/phrase in file? b:z Linux - General 2 03-30-2005 09:11 PM
Man pages twantrd Solaris / OpenSolaris 5 08-16-2004 03:15 AM
man pages? southsibling Linux - Newbie 2 08-31-2003 11:04 AM
man pages spuppett Linux - General 5 02-23-2003 02:28 AM


All times are GMT -5. The time now is 05:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration