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)
Paul Tomblin
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.
Try this:
man uniq > uniq.man
man guniq > guniq.man
diff uniq.man guniq.man
来源:https://stackoverflow.com/questions/621789/comparing-macs-and-unix-manuals