LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 11-18-2010, 10:06 AM   #1
protolocke
LQ Newbie
 
Registered: Jun 2010
Posts: 12

Rep: Reputation: 0
How do I look for specific options in a man page?


Say I want to lookup the compiler flag -Wall under the man page for the GNU fortran compiler gfortran.

I know that 'man gfortran' will get me the manual page for gfortran, but how do I lookup only the bit I want, which is '-Wall'? I can't find anything in the manual page for man.

I could use 'man gfortran | grep -Wall' but that would return just a single line and not the whole paragraph.

Thanks for any help
 
Old 11-18-2010, 10:40 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Search by pressing / then typing -Wall

'n' to move to the next match.
 
1 members found this post helpful.
Old 11-18-2010, 11:18 AM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Just as a side note, on my system, I need to escape the dash to find a match. So, in the man page, I need to type:

/\-Wall

Not quite sure why that is. I never looked into it to find out.

Last edited by Dark_Helmet; 11-18-2010 at 11:21 AM.
 
Old 11-19-2010, 01:13 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
If you normally have access to the web, http://linux.die.net/man/
 
Old 11-19-2010, 07:13 AM   #5
protolocke
LQ Newbie
 
Registered: Jun 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
Search by pressing / then typing -Wall

'n' to move to the next match.
Thanks, that's exactly what I was looking for
 
Old 11-19-2010, 07:31 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,487

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
This is actually a facility of the paginater program, not the man-page itself. Generally less in distros these days - "man less" will help greatly I would think.
 
  


Reply

Tags
man


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
About Man Page Actionscript3 Linux - Newbie 5 10-27-2010 04:26 AM
how can redirect specific ip to specific web page Barq Linux - Server 0 07-01-2009 07:58 PM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 09:52 AM
Is there a man page on how to use man page? jdruin Linux - Software 2 10-30-2004 10:29 AM
getting out of a man page! naijaguy Linux - Newbie 2 08-13-2004 10:28 PM


All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
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