How can I list differences between Mac's and Unix manuals?
如何列出Mac和Unix手册之间的差异?
For example, between the following commands
例如,在以下命令之间
uniq
guniq
I tried the following unsuccessfully
我尝试了下面的失败
diff (man uniq) (man guniq)
2 个解决方案
#1
That should be
那应该是
diff <(man uniq) <(man guniq)
To answer saua's question from the comments:
从评论中回答saua的问题:
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.
Bash将<(...)转换为命名管道,diff程序将其视为文件。因此,就diff而言,它正在比较两个文件。
#2
Try this:
man uniq > uniq.man
man guniq > guniq.man
diff uniq.man guniq.man
#1
That should be
那应该是
diff <(man uniq) <(man guniq)
To answer saua's question from the comments:
从评论中回答saua的问题:
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.
Bash将<(...)转换为命名管道,diff程序将其视为文件。因此,就diff而言,它正在比较两个文件。
#2
Try this:
man uniq > uniq.man
man guniq > guniq.man
diff uniq.man guniq.man