Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何列出 Mac 和 Unix 手册之间的差异?
例如,在以下命令之间
uniq guniq
我尝试了以下失败
diff (man uniq) (man guniq)
那应该是
diff <(man uniq) <(man guniq)
从评论中回答 saua 的问题:
Bash 变成<(...)了一个命名管道,diff 程序将其视为一个文件。据 diff 所知,它是在比较两个文件。
<(...)
试试这个:
man uniq > uniq.man man guniq > guniq.man diff uniq.man guniq.man