computer_knowledge_notes/Software/文本转换/comm.md

19 lines
484 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

```
comm [options] <file1> <file2> # 逐行比较两个排序好的文件。
# 如不在选项中指定默认输出三列。第一列为仅在file1中出现的内容第二列为仅在file2中出现的内容第三列为两个文件中都有的内容。
```
#### 选项
```
-1 # 仅显示第一列
-2 # 仅显示第二列
-3 # 仅显示第三列
--check-order
--nocheck-order
--output-delimiter=STR # 用STR分隔各列
--total
-z, --zero-terminated
```