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 |
Search by pressing / then typing -Wall
'n' to move to the next match. |
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. |
If you normally have access to the web, http://linux.die.net/man/
|
Quote:
|
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 04:25 AM. |