linux文件比对的问题文件a,b。想得到在文件a中,但是不在文件b中的数据。文件内容是每行一个邮箱。[解决办法]
#!/bin/bashcat $1 | while read linedo cat $2 | grep -q $line if [ ! $? -eq 0 ]; then echo $line fidone[解决办法]sort a > a.tmpsort b > b.tmpcomm -23 a.tmp b.tmp