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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-18-2010, 09:06 AM
|
#1
|
LQ Newbie
Registered: Jun 2010
Posts: 12
Rep:
|
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
|
|
|
11-18-2010, 09:40 AM
|
#2
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
Search by pressing / then typing -Wall
'n' to move to the next match.
|
|
1 members found this post helpful.
|
11-18-2010, 10:18 AM
|
#3
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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.
|
|
|
11-19-2010, 12:13 AM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,393
|
If you normally have access to the web, http://linux.die.net/man/
|
|
|
11-19-2010, 06:13 AM
|
#5
|
LQ Newbie
Registered: Jun 2010
Posts: 12
Original Poster
Rep:
|
Quote:
Originally Posted by AlucardZero
Search by pressing / then typing -Wall
'n' to move to the next match.
|
Thanks, that's exactly what I was looking for
|
|
|
11-19-2010, 06:31 AM
|
#6
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,238
|
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.
|
|
|
All times are GMT -5. The time now is 10:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|