We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
我不知道有 GUI 应用程序可以做到这一点,但在终端上这相当容易:
cat file1.txt file2.txt |排序| uniq -d
-d
将使其仅显示重复的行。如果您只想要不重复的输出,只需省略-d
即可。I don't know of a GUI app to do it, but it's fairly easy at the terminal:
cat file1.txt file2.txt | sort | uniq -d
The
-d
will make it show only duplicate lines. If you just want the output without duplicates, just leave off the-d
.