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

posted @ 2014-09-28 17:24  emanlee  阅读(897)  评论(0编辑  收藏  举报