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
Linux Shell文件差集
最新推荐文章于 2022-11-04 09:46:54 发布
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