Linux 文件取交集 并集 差集
摘要:
使用sort+uniq 直接举例子 file1的内容是 aaaa bbbb cccc file2的内容时 aaaa bbbb dddd 求交集 cat file1 file2 | sort | uniq -d 求并集 cat file1 file2 | sort | uniq 求 file1 - f 阅读全文
posted @ 2020-08-01 19:46 yanximin 阅读(672) 评论(0) 推荐(0) 编辑