Linux Shell文件差集

file1-file2 => file3
file1=/data/aaa
file2=/data/bbb
file3=/data/ccc
sort -m <(sort $file1 | uniq) <(sort $file2 | uniq) <(sort $file2 | uniq) | uniq -u  > $file3

原文地址:https://www.cnblogs.com/emanlee/p/3998671.html