regexsearchmanpageless-unix

Search in Man page for words at the beginning of line


For me, it happens a lot when I want to search for an specific option in man page. I know that options are at the beginning of lines, but don't know how to limit the search.
I've tried /^REG-PATT, but it didn't work for me.

What is the shortest correct pattern that I can use ?


Solution

  • There's some space before the options. Maybe ^\s*-o (-o is the option you are searching) works. Or you can simply search the option in the whole line (-o).