[英]Read man page or file from certain row
Is there a way to read a man page from a certain row?有没有办法从某一行读取手册页?
I grepped for a specific flag in a man page and saw what line it was in, is there a way start reading the man form that line?我在手册页中寻找一个特定的标志,看到它在哪一行,有没有办法从那一行开始阅读手册?
man
uses $MANPAGER or $PAGER, so it depends on what you're using. man
使用 $MANPAGER 或 $PAGER,所以这取决于您使用的是什么。 To start reading the manpage for foo
at the first match of 'pattern', you might try:要在 'pattern' 的第一场比赛开始阅读
foo
的手册页,您可以尝试:
MANPAGER='less -p pattern' man foo
or (assuming ${MANPAGER-PAGER} is less
):或(假设 ${MANPAGER-PAGER} 是
less
):
LESS+='-p pattern' man foo
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.