How do I search man pages for options? I currently do this:
/-<option>
Example:
To see what grep -i does, I do this:
man grep
and then
/-i.
Or, I can do this:
man grep | grep .-i
Is there a better way of searching man pages for options?
You can redirect the man output to gedit and then use "ctrl+F" to find whatever you want to.
man grep | gedit
which will show you man page of grep in a gedit window. Use find option. :)
/ and typing?! Learning the Vim basics will help you move around man :)
– Enrico
Feb 18 '17 at 15:31
man | less -p <PATTERN>like http://unix.stackexchange.com/questions/18087/can-i-get-individual-man-pages-for-the-bash-builtin-commands – Mikel Dec 11 '12 at 03:12