gpt4 book ai didi

linux - 使用 grep 命令搜索 man pape

转载 作者:太空宇宙 更新时间:2023-11-04 04:03:00 25 4
gpt4 key购买 nike

虽然手册页有很多信息,但我立即需要一点点。例如,objdump -f kernel.o,但我忘记了标志“-f”的功能。

我尝试了这个但失败了。

man objdump | grep -e '*.(\-)f.*'

错误信息如下:

<standard input>:161: warning [p 1, 5.5i]: can't break line
<standard input>:594: warning [p 6, 6.5i, div `an-div', 0.0i]: can't break line

如何使用 grep 搜索手册页?

最佳答案

$ man objdump | grep -e "-f"
<standard input>:161: warning [p 1, 5.5i]: can't break line
<standard input>:590: warning [p 6, 6.5i, div `an-div', 0.0i]: can't break line
[-f|--file-headers]
[-F|--file-offsets]
[--file-start-context]
[-s|--full-contents]
-a,-d,-D,-e,-f,-g,-G,-h,-H,-p,-P,-r,-R,-s,-S,-t,-T,-V,-x must be given.
-f
--file-headers
--file-offsets
--file-start-context
--full-contents
all of -a -f -h -p -r -t.

这就是你想要的吗?

关于linux - 使用 grep 命令搜索 man pape,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22341821/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com