comm <(sort a.txt|uniq) <(sort b.txt|uniq)
输入为两个待比较的文件
![](https://img.haomeiwen.com/i4434395/c3387acd7fa956af.png)
来自:https://www.jb51.cc/bash/391696.html
使用sort
https://www.cnblogs.com/thatsit/p/6657993.html
comm <(sort a.txt|uniq) <(sort b.txt|uniq)
输入为两个待比较的文件
本文标题:Shell 命令求两个文件每行对比的相同内容
本文链接:https://www.haomeiwen.com/subject/gcacsktx.html
网友评论