Skip to main content
added 22 characters in body
Source Link
Vombat
  • 13.3k
  • 14
  • 47
  • 58

You can use -P flag of tell man program to use a pager to display pages. Here forFor example you can use less is used as the pager program with flag -p flag to search for the pattern ERROR happening in the beginning of the line inside the man page:

man -P 'less -p ^ERRORS' symlink 

This opens man page of symlink and jumps directly to the ERRORS section of it.

You can use -P flag of tell man program to use a pager to display pages. Here for example less is used as the pager with -p flag to search for the pattern ERROR happening in the beginning of the line:

man -P 'less -p ^ERRORS' symlink 

This opens man page of symlink and jumps directly to the ERRORS section of it.

You can use -P flag of man program to use a pager to display pages. For example you can use less as the pager program with flag -p to search for the pattern ERROR happening in the beginning of the line inside the man page:

man -P 'less -p ^ERRORS' symlink 

This opens man page of symlink and jumps directly to the ERRORS section of it.

added 72 characters in body
Source Link
Vombat
  • 13.3k
  • 14
  • 47
  • 58

You can use -P flag of tell man program to use program pagera pager to display pages. Then combine it with lessHere for example less is used as follows to jumpthe pager with -p flag to a sectionsearch for the pattern ERROR happening in the beginning of the line:

man -P 'less -p ^ERRORS' symlink 

This opens man page of symlink and jumps directly to the ERRORS section of it.

You can use -P flag of man program to use program pager to display pages. Then combine it with less as follows to jump to a section:

man -P 'less -p ^ERRORS' symlink 

This opens man page of symlink and jumps directly to the ERRORS section of it.

You can use -P flag of tell man program to use a pager to display pages. Here for example less is used as the pager with -p flag to search for the pattern ERROR happening in the beginning of the line:

man -P 'less -p ^ERRORS' symlink 

This opens man page of symlink and jumps directly to the ERRORS section of it.

added 80 characters in body
Source Link
Vombat
  • 13.3k
  • 14
  • 47
  • 58

You can use -P flag of man program to use program pager to display pages. Then combine it with less as follows to jump to a section using the following method:

man --pager='lessP 'less -p ^ERRORS' symlink 

This opens man page of symlink and jumps directly to the ERRORS section of it.

You can jump to a section using the following method:

man --pager='less -p ^ERRORS' symlink 

This opens man page of symlink and jumps directly to the ERRORS section of it.

You can use -P flag of man program to use program pager to display pages. Then combine it with less as follows to jump to a section:

man -P 'less -p ^ERRORS' symlink 

This opens man page of symlink and jumps directly to the ERRORS section of it.

added 28 characters in body
Source Link
Vombat
  • 13.3k
  • 14
  • 47
  • 58
Loading
Source Link
Vombat
  • 13.3k
  • 14
  • 47
  • 58
Loading