我正试图为各种工具压缩一个手册页列表,以便:
NAME
ls – list directory contents
DESCRIPTION
For each operand that names a file of a type other than directory, ls displays its name as well as any requested, associated information. For each operand that names a file of
type directory, ls displays the names of files contained within that directory, as well as any requested, associated information.
输出应该是完整的NAME部分和完整的DESCRIPTION部分。所以当我输入man <tool name> | awk/grep/etc
时,它会像上面的代码一样出现。
我已经尝试了man ls | grep "NAME"
和不同的变化。man ls | col -bx | awk '/^[A-Z ]+$/ {print}'
只给我的标题名称。和各种各样的组合,导致我没有在哪里。任何建议?
1条答案
按热度按时间oxiaedzo1#
你的问题不清楚,但也许这就是你想要的,因为它看起来像你发布的预期输出?
但你说你想要完整的描述,那么这将是: