比较2个文件的不一样处

for item in `cat 2.txt`
do
    grep $item 1.txt >/tmp/test.txt
    if [ $? -ne 0 ];then
       echo "$item"
    fi
done
相关文章
相关标签/搜索