比较 Mac 和 Unix 手册?

发布于 2024-07-14 20:55:20 字数 164 浏览 10 评论 0原文

如何列出 Mac 和 Unix 手册之间的差异?

例如,在以下命令之间

uniq
guniq

我尝试了以下命令但未成功

diff (man uniq) (man guniq)

How can I list differences between Mac's and Unix manuals?

For example, between the following commands

uniq
guniq

I tried the following unsuccessfully

diff (man uniq) (man guniq)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回首观望 2024-07-21 20:55:20

这应该是

diff <(man uniq) <(man guniq)

从评论中回答 saua 的问题:

Bash 将 <(...) 转换为命名管道,diff 程序将其视为文件。 据 diff 所知,它正在比较两个文件。

That should be

diff <(man uniq) <(man guniq)

To answer saua's question from the comments:

Bash turns <(...) into a named pipe, which the diff program sees as a file. So as far as diff knows, it's comparing two files.

俯瞰星空 2024-07-21 20:55:20

尝试这个:

man uniq > uniq.man
man guniq > guniq.man
diff uniq.man guniq.man

Try this:

man uniq > uniq.man
man guniq > guniq.man
diff uniq.man guniq.man
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文