file1-file2 => file3file1=/data/aaafile2=/data/bbbfile3=/data/cccsort -m <(sort $file1 | uniq) <(sort $file2 | uniq) <(sort $file2 | uniq) | uniq -u > $file3
Linux Shell文件差集
原文:http://www.cnblogs.com/emanlee/p/3998671.html