When I'm grepping a man page for the section titles written in capitals, it seems as if they are not there. It works with the same words in lowercase. For example, when I write man <xxx> | grep -i also
, it shows all the lines with the word "also" but not "SEE ALSO" section title.
How can I make grep recognize section titles of man pages?
man ls | grep -A2 ALSO
? What operating system are you using? – terdon Jul 07 '19 at 12:22Anyway, I've solved it - between first and second command add another pipe - | col -b or | ul - so it becomes:
man | col -b | grep -A2 "SEE ALSO"
– user361195 Jul 07 '19 at 12:37S^HSE^HEE^HE A^HAL^HLS^HSO^HO
– Jeff Schaller Jul 08 '19 at 00:09