Shell 取两个文件的交集和并集

cat 1.txt 2.txt | sort -n | uniq -d 交集

cat 1.txt 2.txt 2.txt | sort -n | uniq -u 差集 去除1.txt2.txt里包含的内容

1.txt和2.txt都已排重。

原文:

http://zhan.renren.com/linuxsir?gid=3602888498031319239&from=post&checked=true

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案