【发布时间】:2019-11-06 07:24:31
【问题描述】:
我正在尝试学习 shell 编程,为此我在 Windows 10 中使用 ubuntu 应用程序,我阅读了有关 comm 命令的信息,据我了解,它应该按如下方式工作
file1.txt file2.txt
abc abc
cde efg
a b
b c
the result should be
a
cde
abc
b
c
efg
but what I am getting is
abc
a
cde
b
efg
abc
c
这就是我使用命令的方式
comm file1.txt file2.txt
我怀疑它是因为我在 Windows 应用程序上使用它,但其他命令,如 grep uniq ps pwd ... 一切正常 任何帮助将不胜感激
【问题讨论】: