LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 09: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, 09:40 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

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

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

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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 10:21 AM.
 
Old 11-19-2010, 12:13 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
If you normally have access to the web, http://linux.die.net/man/
 
Old 11-19-2010, 06: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, 06:31 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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



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
getting out of a man page! naijaguy Linux - Newbie 11 04-10-2018 05:21 PM
About Man Page Actionscript3 Linux - Newbie 5 10-27-2010 03:26 AM
how can redirect specific ip to specific web page Barq Linux - Server 0 07-01-2009 06:58 PM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 08:52 AM
Is there a man page on how to use man page? jdruin Linux - Software 2 10-30-2004 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:49 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
Open Source Consulting | Domain Registration